Update app.py
Browse files
app.py
CHANGED
@@ -14,4 +14,4 @@ def answer(question, context):
|
|
14 |
answers = [pipe(question=question, context=context) for pipe in pipes]
|
15 |
return [answer["answer"] for answer in answers]
|
16 |
|
17 |
-
gr.Interface(answer, inputs=[gr.inputs.Textbox(lines=1, default=question, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=10, default=context, placeholder="Context Here...", label="Context")], outputs=[gr.outputs.Textbox(label="SQuADv1.1"),gr.outputs.Textbox(label="SQuAD-eu"),gr.outputs.Textbox(label="SQuADv1.1 + SQuAD-eu")], title = "Question Answering in Basque", description="This demo compares the outputs of three QA models based on IXAmBERT. Each has been trained on different data: one on SQuADv1.1, another on an experimental version of SQuAD in Basque, and the last on both those datasets. The models mays also be able to answer questions in English and Spanish, because the base model is multilingual, and was pretrained on those 3 languages, but the intention of this demo is to compare performance in Basque.").launch()
|
|
|
14 |
answers = [pipe(question=question, context=context) for pipe in pipes]
|
15 |
return [answer["answer"] for answer in answers]
|
16 |
|
17 |
+
gr.Interface(answer, inputs=[gr.inputs.Textbox(lines=1, default=question, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=10, default=context, placeholder="Context Here...", label="Context")], outputs=[gr.outputs.Textbox(label="SQuADv1.1"),gr.outputs.Textbox(label="SQuAD-eu"),gr.outputs.Textbox(label="SQuADv1.1 + SQuAD-eu")], title = "Question Answering in Basque", description="This demo compares the outputs of three extractive QA models based on IXAmBERT. Each has been trained on different data: one on SQuADv1.1, another on an experimental version of SQuAD in Basque, and the last on both those datasets. The models mays also be able to answer questions in English and Spanish, because the base model is multilingual, and was pretrained on those 3 languages, but the intention of this demo is to compare performance in Basque.").launch()
|