Spaces:
Running
Running
Update app/webui/process.py
Browse files- app/webui/process.py +1 -1
app/webui/process.py
CHANGED
@@ -209,7 +209,7 @@ def translator_sec(
|
|
209 |
language = Language(target_lang)
|
210 |
except Exception as e:
|
211 |
raise gr.Error(f"An unexpected error occurred: {e}")
|
212 |
-
translation_1_chunks = gtranslator.translate(source_text_chunks, language)
|
213 |
else:
|
214 |
translation_1_chunks = multichunk_initial_translation(
|
215 |
source_lang, target_lang, source_text_chunks
|
|
|
209 |
language = Language(target_lang)
|
210 |
except Exception as e:
|
211 |
raise gr.Error(f"An unexpected error occurred: {e}")
|
212 |
+
translation_1_chunks = gtranslator.translate(source_text_chunks, language).result
|
213 |
else:
|
214 |
translation_1_chunks = multichunk_initial_translation(
|
215 |
source_lang, target_lang, source_text_chunks
|