altryne commited on
Commit
d7ce0e1
1 Parent(s): 3bf79f7

Smal fix for big issues

Browse files
Files changed (1) hide show
  1. utils/apis.py +1 -1
utils/apis.py CHANGED
@@ -78,7 +78,7 @@ def caption(downloadable_url="", uid="", language="Autodetect", override_model_s
78
  :param tweet_url: tweet URL can potentially not exist in the future, so we can upload on behalf of the user
79
  :return:
80
  """
81
- status, whisper_result_captions = caption_generator(downloadable_url, uid, language, override_model_size)
82
  anvil.server.launch_background_task('add_captions_to_video', uid, whisper_result_captions)
83
  return {'status': status, 'message': 'started a background process to upload subtitles to {uid}' }
84
 
 
78
  :param tweet_url: tweet URL can potentially not exist in the future, so we can upload on behalf of the user
79
  :return:
80
  """
81
+ status, whisper_result_captions, detected_language = caption_generator(downloadable_url, uid, language, override_model_size)
82
  anvil.server.launch_background_task('add_captions_to_video', uid, whisper_result_captions)
83
  return {'status': status, 'message': 'started a background process to upload subtitles to {uid}' }
84