Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
|
|
| 39 |
gr.HTML("<h4 align = 'center'> Translate to any language </h4>")
|
| 40 |
|
| 41 |
inputs = [gr.Textbox(label = "Enter the text that you want to translate"), gr.Textbox(label = "Enter the language that you want it to translate to", placeholder = "Example : Hindi,French,Bengali,etc")]
|
| 42 |
-
generate_btn = gr.Button(value = '
|
| 43 |
outputs = [gr.Textbox(label = "Translated text")]
|
| 44 |
generate_btn.click(fn = text_translator, inputs= inputs, outputs = outputs)
|
| 45 |
|
|
|
|
| 39 |
gr.HTML("<h4 align = 'center'> Translate to any language </h4>")
|
| 40 |
|
| 41 |
inputs = [gr.Textbox(label = "Enter the text that you want to translate"), gr.Textbox(label = "Enter the language that you want it to translate to", placeholder = "Example : Hindi,French,Bengali,etc")]
|
| 42 |
+
generate_btn = gr.Button(value = 'Translate')
|
| 43 |
outputs = [gr.Textbox(label = "Translated text")]
|
| 44 |
generate_btn.click(fn = text_translator, inputs= inputs, outputs = outputs)
|
| 45 |
|