nickmuchi commited on
Commit
90360fc
1 Parent(s): 344ca22

Update functions.py

Browse files
Files changed (1) hide show
  1. 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
- yt = 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,7 +336,7 @@ def inference(link, upload, _asr_model):
336
 
337
  results = ','.join(transcriptions)
338
 
339
- return results, yt.title
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