This tool is designed to fetch and improve the transcript of a YouTube video using OpenAI's GPT-4. It provides a web interface where users can enter a YouTube link, retrieve the raw transcript, and after being processed by OpenAI it displays an enhanced version of the transcript as processed by gpt-4-1106-preview
.
- Fetch YouTube video transcripts.
- Process and improve transcripts using OpenAI's GPT-4 model.
- Real-time display of AI-enhanced transcripts through a web interface.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/lamaranelson/youtube-tool.git
-
Navigate to the project directory:
cd youtube_tool
-
Install dependencies:
npm install
-
Start the application:
npm start
Create a .env
file in the root directory and add the following line:
OPENAI_API_KEY=your_openai_api_key
Replace your_openai_api_key
with your actual OpenAI API key.
youtube_tool/
|-- src/
| |-- app.js
| |-- public/
| | |-- index.html
| | |-- script.js
| | |-- styles.css
| |-- extra_scripts/
| |-- youtube_test.js
|-- package.json
|-- .gitignore
|-- README.md
|-- LICENSE
Contributions are welcome. Please open an issue first to discuss what you would like to change or add. You can always fork the repo and raise a PR.
![Screenshot 2023-11-28 at 2 58 56 PM](https://private-user-images.githubusercontent.com/65568691/286428179-a5a3a33d-8265-4aa8-9a7f-88c0ab25d8ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTIyNzgsIm5iZiI6MTcyNDI1MTk3OCwicGF0aCI6Ii82NTU2ODY5MS8yODY0MjgxNzktYTVhM2EzM2QtODI2NS00YWE4LTlhN2YtODhjMGFiMjVkOGNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE0NT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V6g)
![Screenshot 2023-11-28 at 3 22 41 PM](https://private-user-images.githubusercontent.com/65568691/286428240-4eed6505-df1f-48ae-ae62-2924f36bfc50.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNTIyNzgsIm5iZiI6MTcyNDI1MTk3OCwicGF0aCI6Ii82NTU2ODY5MS8yODY0MjgyNDAtNGVlZDY1MDUtZGYxZi00OGFlLWFlNjItMjkyNGYzNmJmYzUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDE0NTI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5N2NmZmMyZmRmNWNjYTcwNGEzYTQzYzhhM2YxMGY5ZGEwNDAxZmQ2Nzk4OTkxYThmZDhlNWYzNDVkMzAzNjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qih47hdRkl47ju3ReGGhEi-jjcj0FkuAvttiEo0Lq4g)