Spaces:
Runtime error
Runtime error
fixed the Dataframe error
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def inference(inputtext, model):
|
|
25 |
gr.Interface(
|
26 |
inference,
|
27 |
[gr.inputs.Textbox(label="Context",lines=10),gr.inputs.Dropdown(choices=["dpr-question_encoder-bert-base-multilingual","dpr-multidoc2dial-structure-question-encoder"], type="value", default="dpr-question_encoder-bert-base-multilingual", label="model")],
|
28 |
-
[gr.outputs.Dataframe(label="Output")],
|
29 |
examples=examples,
|
30 |
article=article,
|
31 |
title=title,
|
32 |
-
description=description).launch(enable_queue=True
|
|
|
25 |
gr.Interface(
|
26 |
inference,
|
27 |
[gr.inputs.Textbox(label="Context",lines=10),gr.inputs.Dropdown(choices=["dpr-question_encoder-bert-base-multilingual","dpr-multidoc2dial-structure-question-encoder"], type="value", default="dpr-question_encoder-bert-base-multilingual", label="model")],
|
28 |
+
[gr.outputs.Dataframe(type="pandas",label="Output")],
|
29 |
examples=examples,
|
30 |
article=article,
|
31 |
title=title,
|
32 |
+
description=description).launch(enable_queue=True)
|