MariaK commited on
Commit
2e42a18
1 Parent(s): cdb48c6

fixed the Dataframe error

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