Spaces:
Running
Running
Fixed the runtime error
Browse files
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
|
|
|
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)
|