9wimu9 commited on
Commit
65c0dd1
·
1 Parent(s): 0167585

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,4 +8,4 @@ def question_answer(context, question):
8
  result = question_answerer(question=question, context=context)
9
  return result['answer'],result['score']
10
 
11
- gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=[gr.outputs.Textbox(label="Answer"), gr.outputs.Textbox(label="Probability")]).launch()
 
8
  result = question_answerer(question=question, context=context)
9
  return result['answer'],result['score']
10
 
11
+ gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=[gr.components.Textbox(label="Answer"), gr.components.Textbox(label="Probability")]).launch()