Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ import os
|
|
124 |
|
125 |
|
126 |
def transcribe_audio(youtube_link, audio_file):
|
127 |
-
if youtube_link:
|
128 |
result = audio_to_text(youtube_link, "None")
|
129 |
elif audio_file:
|
130 |
if os.path.exists(audio_file):
|
|
|
124 |
|
125 |
|
126 |
def transcribe_audio(youtube_link, audio_file):
|
127 |
+
if len(youtube_link)>=4:
|
128 |
result = audio_to_text(youtube_link, "None")
|
129 |
elif audio_file:
|
130 |
if os.path.exists(audio_file):
|