Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def answer_question(question, answer_text):
|
|
8 |
|
9 |
answer = question_answerer(question=question, context=answer_text)
|
10 |
|
11 |
-
return answer["answer"]
|
12 |
|
13 |
iface = gr.Interface(fn=answer_question, inputs=[gr.inputs.Textbox(lines=1, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=5, placeholder="Context Here...", label="Context")], outputs=gr.outputs.Textbox(label="Answer"))
|
14 |
iface.launch()
|
|
|
8 |
|
9 |
answer = question_answerer(question=question, context=answer_text)
|
10 |
|
11 |
+
return answer["answer"]
|
12 |
|
13 |
iface = gr.Interface(fn=answer_question, inputs=[gr.inputs.Textbox(lines=1, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=5, placeholder="Context Here...", label="Context")], outputs=gr.outputs.Textbox(label="Answer"))
|
14 |
iface.launch()
|