https://github.com/vr-enhanced-learning/serverless-youtube-questions
Serverless Function for Generating Questions from YouTube
https://github.com/vr-enhanced-learning/serverless-youtube-questions
flask serverless vercel
Last synced: about 2 months ago
JSON representation
Serverless Function for Generating Questions from YouTube
- Host: GitHub
- URL: https://github.com/vr-enhanced-learning/serverless-youtube-questions
- Owner: vr-enhanced-learning
- Created: 2023-04-09T13:43:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-09T11:11:17.000Z (about 3 years ago)
- Last Synced: 2025-07-25T22:44:55.723Z (11 months ago)
- Topics: flask, serverless, vercel
- Language: Python
- Homepage: https://youtube-questions.vercel.app/
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Questions Generator for YouTube Videos - Serverless
It uses `youtube-transcript-api` to get the captions from YouTube. Then it separates the captions into 5 chunks and generates questions for each chunk. It uses a deployed [Hugging Face model](https://currentlyexhausted-question-generator.hf.space) to generate the questions.
It uses Vercel Serverless Function to run the flask server. Hopefully in under 10 seconds.
## Installation
```bash
pip install -r requirements.txt
```
## Usage
```bash
python app.py
```
## Endpoints
- `/` **POST**
- body: {"youtubeVideoId": "g0amdIcZt5I"}
- `any` **GET**