Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
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()
|