Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,5 +14,10 @@ def translate(text):
|
|
14 |
translation = tokenizer.decode(translated_tokens[0], skip_special_tokens=True)
|
15 |
return translation
|
16 |
|
17 |
-
iface = gr.Interface(fn=translate,
|
|
|
|
|
|
|
|
|
|
|
18 |
iface.launch()
|
|
|
14 |
translation = tokenizer.decode(translated_tokens[0], skip_special_tokens=True)
|
15 |
return translation
|
16 |
|
17 |
+
iface = gr.Interface(fn=translate,
|
18 |
+
inputs="text",
|
19 |
+
outputs="text",
|
20 |
+
title="EnSi NMT",
|
21 |
+
description="This is a demo and rest for ensi nmt by @zaanind."
|
22 |
+
)
|
23 |
iface.launch()
|