Spaces:
Build error
Build error
Smal fix for big issues
Browse files- 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 |
|