Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -101,8 +101,8 @@ with gr.Blocks() as demo:
|
|
101 |
vietnamese = gr.Textbox(label="Vietnamese Text")
|
102 |
translate_to_english = gr.Button(value="Translate To English")
|
103 |
with gr.Column():
|
104 |
-
|
105 |
-
translate_to_english.click(lambda text: translate_vi2en(text), inputs=vietnamese, outputs=
|
106 |
gr.Examples(examples=vi_example_text,
|
107 |
inputs=[vietnamese])
|
108 |
|
@@ -112,8 +112,8 @@ with gr.Blocks() as demo:
|
|
112 |
english = gr.Textbox(label="English Text")
|
113 |
translate_to_vietnamese = gr.Button(value="Translate To Vietnamese")
|
114 |
with gr.Column():
|
115 |
-
|
116 |
-
translate_to_vietnamese.click(lambda text: translate_en2vi(text), inputs=english, outputs=
|
117 |
gr.Examples(examples=en_example_text,
|
118 |
inputs=[english])
|
119 |
|
|
|
101 |
vietnamese = gr.Textbox(label="Vietnamese Text")
|
102 |
translate_to_english = gr.Button(value="Translate To English")
|
103 |
with gr.Column():
|
104 |
+
english = gr.Textbox(label="English Text")
|
105 |
+
translate_to_english.click(lambda text: translate_vi2en(text), inputs=vietnamese, outputs=english)
|
106 |
gr.Examples(examples=vi_example_text,
|
107 |
inputs=[vietnamese])
|
108 |
|
|
|
112 |
english = gr.Textbox(label="English Text")
|
113 |
translate_to_vietnamese = gr.Button(value="Translate To Vietnamese")
|
114 |
with gr.Column():
|
115 |
+
vietnamese = gr.Textbox(label="Vietnamese Text")
|
116 |
+
translate_to_vietnamese.click(lambda text: translate_en2vi(text), inputs=english, outputs=vietnamese)
|
117 |
gr.Examples(examples=en_example_text,
|
118 |
inputs=[english])
|
119 |
|