https://github.com/vr-enhanced-learning/t5-answering
T5 Answering API
https://github.com/vr-enhanced-learning/t5-answering
answering bard flask gunicorn t5 turb
Last synced: 25 days ago
JSON representation
T5 Answering API
- Host: GitHub
- URL: https://github.com/vr-enhanced-learning/t5-answering
- Owner: vr-enhanced-learning
- Created: 2023-05-28T11:42:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T01:37:19.000Z (about 3 years ago)
- Last Synced: 2025-08-09T23:51:43.969Z (10 months ago)
- Topics: answering, bard, flask, gunicorn, t5, turb
- Language: Python
- Homepage: https://turb-answer.adaptable.app/
- Size: 177 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TURB-Questions
This is a simple Flask app that uses the TURB API to generate questions from YouTube video captions.
To use the app, first install the necessary dependencies:
```bash
pip install flask flask-cors requests turb
```
Then, run the app:
```bash
python app.py
```
The app will be available at http://localhost:5000.
To generate a question, enter the YouTube video ID and the question in the form. The app will then generate a question based on the video captions.
For example, if you enter the YouTube video ID for "How to Make a Paper Airplane" and the question "What is the best way to fold a paper airplane?", the app will generate the following question:
What is the best way to fold a paper airplane that will fly the farthest?
You can also update the TURB API token by visiting the /update endpoint.
### Start command
```gunicorn -c gunicorn.conf.py app:app```