Spaces:
Runtime error
Runtime error
Commit
Β·
75dfd0c
1
Parent(s):
3f5673b
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ with gr.Blocks() as demo:
|
|
| 97 |
proceed_button = gr.Button("Translate")
|
| 98 |
proceed_button.click(fn=translate_to_chinese, inputs=inputs, outputs=outputs)
|
| 99 |
with gr.Tab("Translation to English"):
|
| 100 |
-
inputs = gr.Textbox(placeholder="Enter a
|
| 101 |
outputs = gr.Textbox(label="Translation Result")
|
| 102 |
proceed_button = gr.Button("Translate")
|
| 103 |
proceed_button.click(fn=translate_to_english, inputs=inputs, outputs=outputs)
|
|
|
|
| 97 |
proceed_button = gr.Button("Translate")
|
| 98 |
proceed_button.click(fn=translate_to_chinese, inputs=inputs, outputs=outputs)
|
| 99 |
with gr.Tab("Translation to English"):
|
| 100 |
+
inputs = gr.Textbox(placeholder="Enter a short Chinese sentence to translate to English here.")
|
| 101 |
outputs = gr.Textbox(label="Translation Result")
|
| 102 |
proceed_button = gr.Button("Translate")
|
| 103 |
proceed_button.click(fn=translate_to_english, inputs=inputs, outputs=outputs)
|