futranbg commited on
Commit
a446815
·
1 Parent(s): d3cb070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
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
- 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
-
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()