Spaces:
Runtime error
Runtime error
Real time translation
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def translate(output_language, input_text):
|
|
| 14 |
interface = gr.Interface(fn=translate,
|
| 15 |
inputs=[
|
| 16 |
gr.Dropdown(['Spanish', 'Bengali', 'English', 'French'],
|
| 17 |
-
label = '
|
| 18 |
gr.Textbox(lines=2, placeholder='Text to translate',
|
| 19 |
label='Text')],
|
| 20 |
outputs='text',
|
|
|
|
| 14 |
interface = gr.Interface(fn=translate,
|
| 15 |
inputs=[
|
| 16 |
gr.Dropdown(['Spanish', 'Bengali', 'English', 'French'],
|
| 17 |
+
label = 'Select the translation language first'),
|
| 18 |
gr.Textbox(lines=2, placeholder='Text to translate',
|
| 19 |
label='Text')],
|
| 20 |
outputs='text',
|