IinjyI commited on
Commit
0fcdc35
1 Parent(s): 895f76f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,6 +127,6 @@ def translate(text):
127
  arabic = tokenizer.decode(out[0], skip_special_tokens=True)
128
  return arabic
129
 
130
- demo = gr.Interface(fn=translate, inputs="text", outputs="text")
131
  demo.launch(share=True)
132
 
 
127
  arabic = tokenizer.decode(out[0], skip_special_tokens=True)
128
  return arabic
129
 
130
+ demo = gr.Interface(fn=translate_pretrained, inputs="text", outputs="text")
131
  demo.launch(share=True)
132