Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def translate_language(text_prompts):
|
|
117 |
tips_text = None
|
118 |
#language_code = language_recognition_model.recognize(text_prompts)
|
119 |
language_code = 'en'
|
120 |
-
if language_code != 'en':
|
121 |
#text_prompts = language_translation_model.translate(text_prompts, language_code, 'en')
|
122 |
except Exception as e:
|
123 |
error_text = str(e)
|
|
|
117 |
tips_text = None
|
118 |
#language_code = language_recognition_model.recognize(text_prompts)
|
119 |
language_code = 'en'
|
120 |
+
#if language_code != 'en':
|
121 |
#text_prompts = language_translation_model.translate(text_prompts, language_code, 'en')
|
122 |
except Exception as e:
|
123 |
error_text = str(e)
|