Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,4 +19,4 @@ def question_answer(context, question):
|
|
19 |
answers, probabilities = model.predict(to_predict)
|
20 |
return answers[0]['answer'][0]
|
21 |
|
22 |
-
gr.Interface(fn=question_answer
|
|
|
19 |
answers, probabilities = model.predict(to_predict)
|
20 |
return answers[0]['answer'][0]
|
21 |
|
22 |
+
gr.Interface(fn=question_answer, inputs=["text", "text"], outputs=["textbox"]).launch()
|