Update app.py
Browse files
app.py
CHANGED
@@ -10,15 +10,15 @@ qa1 = pipeline("question-answering", model="MarcBrun/ixambert-finetuned-squad")
|
|
10 |
qa2 = pipeline("question-answering", model="MarcBrun/ixambert-finetuned-squad-eu")
|
11 |
qa3 = pipeline("question-answering", model="MarcBrun/ixambert-finetuned-squad-eu-en")
|
12 |
|
13 |
-
def
|
14 |
answer = qa1(question=question, context=context)
|
15 |
return answer["answer"]
|
16 |
|
17 |
-
def
|
18 |
answer = qa2(question=question, context=context)
|
19 |
return answer["answer"]
|
20 |
|
21 |
-
def
|
22 |
answer = qa3(question=question, context=context)
|
23 |
return answer["answer"]
|
24 |
|
|
|
10 |
qa2 = pipeline("question-answering", model="MarcBrun/ixambert-finetuned-squad-eu")
|
11 |
qa3 = pipeline("question-answering", model="MarcBrun/ixambert-finetuned-squad-eu-en")
|
12 |
|
13 |
+
def answer_1(question, context):
|
14 |
answer = qa1(question=question, context=context)
|
15 |
return answer["answer"]
|
16 |
|
17 |
+
def answer_2(question, context):
|
18 |
answer = qa2(question=question, context=context)
|
19 |
return answer["answer"]
|
20 |
|
21 |
+
def answer_3(question, context):
|
22 |
answer = qa3(question=question, context=context)
|
23 |
return answer["answer"]
|
24 |
|