Spaces:
Runtime error
Runtime error
Commit
·
dc8fd1b
1
Parent(s):
f19ef2a
init
Browse files- README.md +41 -0
- environment.yml +12 -0
README.md
CHANGED
|
@@ -1,2 +1,43 @@
|
|
| 1 |
# Youtube-Whisper
|
| 2 |
A simple Gradio app that transcribes YouTube videos by extracting audio and using OpenAI’s Whisper model for transcription. Paste a YouTube link and get the video’s audio transcribed into text.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Youtube-Whisper
|
| 2 |
A simple Gradio app that transcribes YouTube videos by extracting audio and using OpenAI’s Whisper model for transcription. Paste a YouTube link and get the video’s audio transcribed into text.
|
| 3 |
+
|
| 4 |
+
## Installation
|
| 5 |
+
|
| 6 |
+
### Step 1: Clone the Repository
|
| 7 |
+
|
| 8 |
+
```bash
|
| 9 |
+
git clone https://github.com/danilotpnta/Youtube-Whisper.git
|
| 10 |
+
cd Youtube-Whisper
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
### Step 2: Create and Activate the Conda Environment
|
| 14 |
+
|
| 15 |
+
To set up the environment using the provided `environment.yml` file:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
conda env create -f environment.yml
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
Once the environment is created, activate it with:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
conda activate yt-whisper
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
### Step 3: Run the App
|
| 28 |
+
|
| 29 |
+
Once the environment is active, you can launch the Gradio app with:
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
python app.py
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
This will start a local server for the app, and you can access it by visiting the URL printed in the terminal (usually `http://localhost:7860/`).
|
| 36 |
+
|
| 37 |
+
### Troubleshooting
|
| 38 |
+
|
| 39 |
+
If you encounter any issues during installation, ensure that `pip` and `conda` are up to date:
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
conda update conda
|
| 43 |
+
pip install --upgrade pip
|
environment.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: yt-whisper
|
| 2 |
+
channels:
|
| 3 |
+
- defaults
|
| 4 |
+
- conda-forge
|
| 5 |
+
dependencies:
|
| 6 |
+
- python=3.9
|
| 7 |
+
- pip
|
| 8 |
+
- pip:
|
| 9 |
+
- gradio==3.16.2
|
| 10 |
+
- pytube==12.1.0
|
| 11 |
+
- openai-whisper==20230314
|
| 12 |
+
- torch==2.0.1
|