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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,8 +78,8 @@ 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
- translate_button.click(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
+ 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...")