MariaK commited on
Commit
1e44043
1 Parent(s): c7e6908

Fixed the runtime error

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -24,10 +24,9 @@ def inference(text, model):
24
 
25
  gr.Interface(
26
  inference,
27
- [gr.inputs.Textbox(label="Input"),gr.inputs.Dropdown(choices=["opus-mt-zh-en","opus-mt-en-de"], type="value", default="opus-mt-zh-en", label="model")
28
- ],
29
- gr.outputs.Textbox(label="Output"),
30
  examples=examples,
31
  article=article,
32
  title=title,
33
- description=description).launch(enable_queue=True, cache_examples=True)
 
24
 
25
  gr.Interface(
26
  inference,
27
+ [gr.inputs.Textbox(label="Input"),gr.inputs.Dropdown(choices=["opus-mt-zh-en","opus-mt-en-de"], type="value", default="opus-mt-zh-en", label="model")],
28
+ [gr.outputs.Textbox(label="Output")],
 
29
  examples=examples,
30
  article=article,
31
  title=title,
32
+ description=description).launch(enable_queue=True)