lingvanex commited on
Commit
ebcc252
·
verified ·
1 Parent(s): bb82cb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -81,6 +81,9 @@ with gr.Blocks() as demo:
81
  text_input = gr.Textbox(label="Input Text", placeholder="Enter text to translate...")
82
  text_output = gr.Textbox(label="Translated Text")
83
 
 
 
 
84
  examples = gr.Examples(
85
  examples=[
86
  ["Hello, how are you?", "English", "Kurdish"],
 
81
  text_input = gr.Textbox(label="Input Text", placeholder="Enter text to translate...")
82
  text_output = gr.Textbox(label="Translated Text")
83
 
84
+ translate_btn = gr.Button("Translate")
85
+ translate_btn.click(translate, inputs=[text_input, src_lang, tgt_lang], outputs=text_output)
86
+
87
  examples = gr.Examples(
88
  examples=[
89
  ["Hello, how are you?", "English", "Kurdish"],