edaiofficial commited on
Commit
fa5e9aa
·
1 Parent(s): b51f7b9

additional commits

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def get_translation(source_language,target_language,source_sentence=None,source_
70
 
71
  pred = translate(params,source,type_)
72
  except Exception:
73
- return 'There was an issue loading the translation model for this language pair.'
74
 
75
  return pred[0] if source_file==None else pred
76
 
 
70
 
71
  pred = translate(params,source,type_)
72
  except Exception:
73
+ return f'There was an issue loading the translation model for {source_language} -> {target_language}. Try another pair please'
74
 
75
  return pred[0] if source_file==None else pred
76