Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ def translation(source, target, text):
|
|
24 |
response=chain.run(question)
|
25 |
return response.partition(eos_string)[0]
|
26 |
|
27 |
-
inputs = [gr.inputs.Dropdown(
|
28 |
-
gr.inputs.Dropdown(
|
29 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
30 |
]
|
31 |
|
|
|
24 |
response=chain.run(question)
|
25 |
return response.partition(eos_string)[0]
|
26 |
|
27 |
+
inputs = [gr.inputs.Dropdown(['English','Vietnamese'], default='English', label='Source'),
|
28 |
+
gr.inputs.Dropdown(['English','Vietnamese']], default='Vietnamese', label='Target'),
|
29 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
30 |
]
|
31 |
|