Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,8 +75,8 @@ def transcribe(Microphone, File_Upload, URL):
|
|
75 |
elif Microphone is not None:
|
76 |
file = Microphone
|
77 |
|
78 |
-
|
79 |
-
link = YouTube(
|
80 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
81 |
else:
|
82 |
file = File_Upload
|
|
|
75 |
elif Microphone is not None:
|
76 |
file = Microphone
|
77 |
|
78 |
+
elif URL:
|
79 |
+
link = YouTube(URL)
|
80 |
source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
81 |
else:
|
82 |
file = File_Upload
|