Update app.py
Browse files
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=
|
| 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 |
|