Spaces:
Sleeping
Sleeping
Dmytro Vodianytskyi
commited on
Commit
·
da4d792
1
Parent(s):
2b46acc
space updated
Browse files
app.py
CHANGED
@@ -71,5 +71,5 @@ def translate(text, model, tokenizer, device, translation_way = "en-lt"):
|
|
71 |
text = "I live in Kaunas"
|
72 |
translate(text, model, tokenizer, device)
|
73 |
""", language='python')
|
74 |
-
translate_button.click(fn=translate, inputs=[input_text,
|
75 |
interface.launch(share=True)
|
|
|
71 |
text = "I live in Kaunas"
|
72 |
translate(text, model, tokenizer, device)
|
73 |
""", language='python')
|
74 |
+
translate_button.click(fn=translate, inputs=[input_text, translation_way, max_length, num_beams], outputs=[output_text])
|
75 |
interface.launch(share=True)
|