Iosif24 commited on
Commit
c8552a5
1 Parent(s): 2d9e181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,6 +14,5 @@ def translate(text):
14
  response = model_tkn.decode(trans_output[0], skip_special_tokens=True)
15
  #response = opus_translator(text)
16
  return response
17
- txt = grad.Textbox(line=1, label="English", placeholder = "English text here")
18
- txt_out = grad.Textbox(line=1, label= "Greek")
19
- grad.Interface(translate, inputs=txt, outputs=txt_out, theme="dark").launch()
 
14
  response = model_tkn.decode(trans_output[0], skip_special_tokens=True)
15
  #response = opus_translator(text)
16
  return response
17
+
18
+ grad.Interface(translate, inputs="text", outputs="text").launch()