mbarnig commited on
Commit
51b4b18
β€’
1 Parent(s): 86d654e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -56,11 +56,14 @@ def iwwersetz(source_text, model, direc):
56
  translator = customization(model, direc)
57
  if model == "NLLB":
58
  if direc == "en -> lb":
59
- translation = translator("en", "lb", source_text)
 
60
  else:
61
- translation = translator("lb", "en", source_text)
 
62
  else:
63
- translation = translator(source_text)
 
64
  return translation
65
 
66
  demo=gr.Interface(
 
56
  translator = customization(model, direc)
57
  if model == "NLLB":
58
  if direc == "en -> lb":
59
+ # translation = translator("en", "lb", source_text)
60
+ translation = source_text
61
  else:
62
+ # translation = translator("lb", "en", source_text)
63
+ translation = source_text
64
  else:
65
+ # translation = translator(source_text)
66
+ translation = source_text
67
  return translation
68
 
69
  demo=gr.Interface(