Jesivn commited on
Commit
715003a
1 Parent(s): 5f3e5dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -78,8 +78,9 @@ with gr.Blocks() as app:
78
  with gr.Row():
79
  tamil_input = gr.Textbox(lines=2, placeholder="Enter Tamil text here...")
80
  english_output = gr.Textbox(label="English Translation")
81
- # translate_button = gr.Button("Translate")
82
- tamil_input.submit(translate_tamil_to_english, inputs=tamil_input, outputs=english_output)
 
83
 
84
  with gr.Row():
85
  english_paragraph_input = gr.Textbox(lines=5, placeholder="Enter English paragraph here...")
 
78
  with gr.Row():
79
  tamil_input = gr.Textbox(lines=2, placeholder="Enter Tamil text here...")
80
  english_output = gr.Textbox(label="English Translation")
81
+ translate_button = gr.Button("Translate")
82
+ with gr.Row():
83
+ translate_button.click(translate_tamil_to_english, inputs=tamil_input, outputs=english_output)
84
 
85
  with gr.Row():
86
  english_paragraph_input = gr.Textbox(lines=5, placeholder="Enter English paragraph here...")