Uses openai to summarize YouTube video transcripts. Demonstrates use of moderation api to check optional user-provided prompt.
You will need to have OPENAI_API_KEY environment variable set to run this, or create a '.env' file in the directory (or parent) where script is run.
To install dependencies, use pipenv:
> pipenv install
Or, use pip3 with the requirements.txt
> pip3 install -r requirements.txt
To run development server:
> python server.py
This endpoint returns a textual summary of the video and takes two parameters:
video_url
(required): A valid YouTube URL of the video whose transcript needs to be summarized.prompt
(optional): A user-provided prompt that specifies how the transcript output should be treated.
This endpoint returns the video transcript and takes takes one parameter:
video_url
(required): A valid YouTube URL of the video whose transcript needs to be transcribed.
This project is licensed under the MIT License.