oddadmix commited on
Commit
8a585e2
·
verified ·
1 Parent(s): 4610d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ def translate(text, direction):
9
  # inputs = my_tkn(text, return_tensors="pt")
10
  # trans_output = mdl.generate(**inputs)
11
  if direction == "MSA → Egyptian":
12
- prompt = text + " <msa_to_egy>"
13
  else:
14
- prompt = text + " <egy_to_msa>"
15
  response = pipe(prompt)[0]['translation_text']
16
 
17
  #response = opus_translator(text)
 
9
  # inputs = my_tkn(text, return_tensors="pt")
10
  # trans_output = mdl.generate(**inputs)
11
  if direction == "MSA → Egyptian":
12
+ prompt = text + " <arz>"
13
  else:
14
+ prompt = text + " <ar>"
15
  response = pipe(prompt)[0]['translation_text']
16
 
17
  #response = opus_translator(text)