-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
23 lines (18 loc) · 972 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Summarize any YouTube video with OpenAI Whisper/ChatGPT
Includes a Firefox addon for interfacing with the summarizer.
Requirements:
* FFMPEG
* Python
Cost:
Rough estimates from running this a few times, a 20-minute video costs about $0.15 total.
Price will vary depending on the length of the video.
Longer videos have their transcripts split into multiple chatgpt requests to stay under token limit, so the cost will be higher.
Setup:
1. Install requirements - `pip install -r requirements.txt`
2. Create .env at root level with 'OPENAI_KEY=YOUR_KEY_HERE'
3. Run `python main.py`
Usage:
1. Submit the URL of a YouTube video to the server with a GET request to localhost:5000?videoUrl=YOUTUBE_URL_HERE
2. The response will be the summary of the video, which will also be output to console and saved to Sever/summaries/(videoId).txt
Limitations:
Currently audio files can exceed the max size limit for Whisper resulting in an error/crash.