dqnguyen commited on
Commit
d605930
1 Parent(s): d36e269

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- german = gr.Textbox(label="English Text")
105
- translate_to_english.click(lambda text: translate_vi2en(text), inputs=vietnamese, outputs=german)
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
- german = gr.Textbox(label="Vietnamese Text")
116
- translate_to_vietnamese.click(lambda text: translate_en2vi(text), inputs=english, outputs=german)
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