Spaces:
Sleeping
Sleeping
Commit
·
9714f44
1
Parent(s):
808b6c8
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ def translate_gradio(input):
|
|
38 |
translate_interface = gr.Interface(fn = translate_gradio,
|
39 |
title = 'Translating "English Data Science" content into Arabic',
|
40 |
inputs=gr.inputs.Textbox(lines = 7, label = 'english content'),
|
41 |
-
outputs="
|
|
|
42 |
)
|
43 |
translate_interface.launch(inline = False)
|
|
|
38 |
translate_interface = gr.Interface(fn = translate_gradio,
|
39 |
title = 'Translating "English Data Science" content into Arabic',
|
40 |
inputs=gr.inputs.Textbox(lines = 7, label = 'english content'),
|
41 |
+
outputs="text",
|
42 |
+
examples = [['In the last few years the RNN-based architectures have shown the best performance in machine translation problems, but still they have some problems that had to be solved. First, they have a difficulty to cope with long-range dependencies (also LSTM when it has to deal with really long sentences). Secondly, each hidden state depends on the previous one which impossible to parallelize and makes it inefficient on GPUs.']]
|
43 |
)
|
44 |
translate_interface.launch(inline = False)
|