Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
def speech_youtube(x):
|
2 |
data = pytube.YouTube(x)
|
3 |
audio = data.streams.get_audio_only()
|
|
|
1 |
+
import os
|
2 |
+
os.system("pip install git+https://github.com/openai/whisper.git")
|
3 |
+
import pytube
|
4 |
+
import whisper
|
5 |
+
import gradio as gr
|
6 |
+
|
7 |
+
model = whisper.load_model('large')
|
8 |
+
|
9 |
def speech_youtube(x):
|
10 |
data = pytube.YouTube(x)
|
11 |
audio = data.streams.get_audio_only()
|