TiberiuCristianLeon commited on
Commit
a7f774e
·
verified ·
1 Parent(s): ed3f7df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -181,9 +181,9 @@ class Translators:
181
  model_name = f"quickmt-en-{self.tl}"
182
  model_path = Translators.quickmtdownload(model_name)
183
  translated_text = Translators.quickmttranslate(model_path, entranslation)
184
- message = f'Translated from {iso1_to_name[self.sl]} to {iso1_to_name[self.tl]} with pivot language English.'
185
  else:
186
- translated_text = f'Model {model_name} from {iso1_to_name[self.sl]} to {iso1_to_name[self.tl]} not available!'
187
  message = f"Available models: {', '.join(quickmt_models)}"
188
  return translated_text, message
189
 
 
181
  model_name = f"quickmt-en-{self.tl}"
182
  model_path = Translators.quickmtdownload(model_name)
183
  translated_text = Translators.quickmttranslate(model_path, entranslation)
184
+ message = f'Translated from {iso1_to_name[self.sl]} to {iso1_to_name[self.tl]} with Quickmt using pivot language English.'
185
  else:
186
+ translated_text = f'No Quickmt model available for translation from {iso1_to_name[self.sl]} to {iso1_to_name[self.tl]}!'
187
  message = f"Available models: {', '.join(quickmt_models)}"
188
  return translated_text, message
189