Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
@@ -11,7 +12,7 @@ def transcribe(audio=None, file=None, youtube=None):
|
|
11 |
elif file is not None:
|
12 |
input=file
|
13 |
elif youtube is not None:
|
14 |
-
yt=
|
15 |
stream=yt.streams.filter(only_audio=True)[0]
|
16 |
stream.download(filename="audio.mp3")
|
17 |
input=audio
|
|
|
1 |
+
from pytube import YouTube
|
2 |
from transformers import pipeline
|
3 |
import gradio as gr
|
4 |
|
|
|
12 |
elif file is not None:
|
13 |
input=file
|
14 |
elif youtube is not None:
|
15 |
+
yt=YouTube(youtube)
|
16 |
stream=yt.streams.filter(only_audio=True)[0]
|
17 |
stream.download(filename="audio.mp3")
|
18 |
input=audio
|