FastAPI YouTube Generate Prompt

This repository contains a FastAPI application designed to process YouTube video links and user prompts, utilizing the embedchain library to generate relevant responses.

App Screenshot

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6+
  • FastAPI
  • Uvicorn (for running the app)
  • An OpenAI API Key set as an environment variable

Installation

Clone the repository to your local machine:

git clone https://github.com/fitriadyaa/youtube-prompt-api.git
cd youtube-prompt-api

Next, install the required dependencies:

pip install fastapi uvicorn embedchain

Usage

To run the application, set your OpenAI API key as an environment variable and start the Uvicorn server:

export OPENAI_API_KEY='your_openai_api_key_here'
uvicorn main:app --reload

The application will be available at http://127.0.0.1:8000. Use the /query/ endpoint to submit YouTube links and prompts as POST requests.

Support Me ☕

If you find MyGithubUser helpful or just want to support my work, you can buy me a coffee! ☕

Buy Me A Coffee Support Me on Saweria