Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,13 @@ def answer_question(question, context):
|
|
15 |
answer = question_answerer(question=question, context=context)
|
16 |
return answer['answer']
|
17 |
|
|
|
18 |
iface = gr.Interface(
|
19 |
fn=answer_question,
|
20 |
-
inputs=[
|
|
|
|
|
|
|
21 |
outputs="text",
|
22 |
title="Hugging Face Question Answering"
|
23 |
)
|
|
|
15 |
answer = question_answerer(question=question, context=context)
|
16 |
return answer['answer']
|
17 |
|
18 |
+
|
19 |
iface = gr.Interface(
|
20 |
fn=answer_question,
|
21 |
+
inputs=[
|
22 |
+
gr.inputs.Textbox(label="Context"),
|
23 |
+
gr.inputs.Textbox(label="Question")
|
24 |
+
],
|
25 |
outputs="text",
|
26 |
title="Hugging Face Question Answering"
|
27 |
)
|