Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,10 +29,10 @@ target_language_names = [f"{code} ({name})" for code, name in target_languages]
|
|
| 29 |
interface = gr.Interface(
|
| 30 |
fn=translate_langdetect,
|
| 31 |
inputs=[
|
| 32 |
-
gr.
|
| 33 |
-
gr.
|
| 34 |
],
|
| 35 |
-
outputs=gr.
|
| 36 |
)
|
| 37 |
|
| 38 |
interface.launch()
|
|
|
|
| 29 |
interface = gr.Interface(
|
| 30 |
fn=translate_langdetect,
|
| 31 |
inputs=[
|
| 32 |
+
gr.components.Textbox(label="Text to translate"),
|
| 33 |
+
gr.components.Dropdown(target_language_names, label="Target Language")
|
| 34 |
],
|
| 35 |
+
outputs=gr.components.Textbox(label="Translation")
|
| 36 |
)
|
| 37 |
|
| 38 |
interface.launch()
|