Add application file
Browse files
app.py
CHANGED
@@ -18,8 +18,6 @@ def question_answering(question, context):
|
|
18 |
|
19 |
# Return the response from the API
|
20 |
return output["answer"]
|
21 |
-
|
22 |
interface = gr.Interface(fn=question_answering, inputs=[gr.inputs.Textbox("question"), gr.inputs.Textbox("context")], outputs=["text"])
|
23 |
-
|
24 |
# Launch the gradio interface
|
25 |
interface.launch()
|
|
|
18 |
|
19 |
# Return the response from the API
|
20 |
return output["answer"]
|
|
|
21 |
interface = gr.Interface(fn=question_answering, inputs=[gr.inputs.Textbox("question"), gr.inputs.Textbox("context")], outputs=["text"])
|
|
|
22 |
# Launch the gradio interface
|
23 |
interface.launch()
|