Update functions.py
Browse files- functions.py +3 -3
functions.py
CHANGED
@@ -301,8 +301,8 @@ def inference(link, upload, _asr_model):
|
|
301 |
|
302 |
if validators.url(link):
|
303 |
|
304 |
-
|
305 |
-
title = yt.title
|
306 |
|
307 |
if 'audio' not in st.session_state:
|
308 |
st.session_state['audio'] = audio_file
|
@@ -336,7 +336,7 @@ def inference(link, upload, _asr_model):
|
|
336 |
|
337 |
results = ','.join(transcriptions)
|
338 |
|
339 |
-
return results,
|
340 |
|
341 |
elif upload:
|
342 |
|
|
|
301 |
|
302 |
if validators.url(link):
|
303 |
|
304 |
+
audio_file = get_yt_audio(link)
|
305 |
+
# title = yt.title
|
306 |
|
307 |
if 'audio' not in st.session_state:
|
308 |
st.session_state['audio'] = audio_file
|
|
|
336 |
|
337 |
results = ','.join(transcriptions)
|
338 |
|
339 |
+
return results, None
|
340 |
|
341 |
elif upload:
|
342 |
|