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