MariaK commited on
Commit
71c8cb9
1 Parent(s): 36ac88c

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",lines=10),gr.inputs.Dropdown(choices=["pegasus-xsum","pegasus-large"], type="value", default="pegasus-xsum", 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",lines=10),gr.inputs.Dropdown(choices=["pegasus-xsum","pegasus-large"], type="value", default="pegasus-xsum", label="model")],
28
+ [gr.outputs.Textbox(label="Output")],
 
29
  examples=examples,
30
  article=article,
31
  title=title,
32
+ description=description).launch(enable_queue=True)