Daryl Lim commited on
Commit
8ff0bfd
·
1 Parent(s): 8f6717a

refactor: move translate button below both columns

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -113,7 +113,6 @@ def _build_demo() -> gr.Blocks:
113
  show_label=False,
114
  buttons=["clear"],
115
  )
116
- translate_btn = gr.Button("Translate", variant="primary")
117
  with gr.Column():
118
  target_language = gr.Dropdown(
119
  choices=language_names,
@@ -129,6 +128,8 @@ def _build_demo() -> gr.Blocks:
129
  buttons=["copy"],
130
  )
131
 
 
 
132
  translate_btn.click(
133
  fn=_translate_with_loading,
134
  inputs=[input_text, target_language],
 
113
  show_label=False,
114
  buttons=["clear"],
115
  )
 
116
  with gr.Column():
117
  target_language = gr.Dropdown(
118
  choices=language_names,
 
128
  buttons=["copy"],
129
  )
130
 
131
+ translate_btn = gr.Button("Translate", variant="primary")
132
+
133
  translate_btn.click(
134
  fn=_translate_with_loading,
135
  inputs=[input_text, target_language],