ajay2827 / PhoenixWhisper

This is the a web application to create a new and effective way of learning languages using AI technologies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhoenixWhisper

About

This is the project using OpenAI Whisper with GPT/MTM language model to create a language learning platform that lets you watch your favorite YouTube videos with dual interactive transcripts

Home page
App Interface

User Guide

There are two options to translate your favorite YouTube video. In both cases, you will need a valid YouTube URL and a language code in 2 letters that you want the translation, then if you

  1. Use OpenAI GPT
  • Choose GPT as the translation model
  • Enter your API key, you can get one from your dashboard
  • The "Initial Prompt" is the translation of "Today is a beautiful day" in the language that you chose above. For example, if I choose "vi" (which stands for Vietnamese), I need to write "Hôm nay trời đẹp quá" as the answer (the translation of "Today is a beautiful day" in Vietnamese)
  1. Using Meta's language model MTM
  • Just click submit after you write the URL and the language code. You're done! :)

Now let's make some coffee while our backend generates the transcripts for you. After the page is ready, enjoy the script! 😍 (and your coffee too)

Installation

Create virtual environment

cd webapp

python -m venv venv

source venv/Scripts/activate (Windows)

Install dependencies for Python

pip install --upgrade pytube 

pip install git+https://github.com/openai/whisper.git -q

pip install flask openai sentencepiece

Run the web app locally at port 5000

python app.py or flask run

This is the project fo the Phoenix team in Whisper Hackathon from OpenAI

About

This is the a web application to create a new and effective way of learning languages using AI technologies

License:GNU General Public License v3.0


Languages

Language:JavaScript 37.2%Language:CSS 25.7%Language:Python 25.6%Language:HTML 11.5%