Spaces:
Paused
Paused
Commit
·
e249f7d
1
Parent(s):
a457627
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,8 @@ def question_answer(context, question):
|
|
23 |
return prediction
|
24 |
|
25 |
def greet(texts):
|
26 |
-
question = texts[:len(texts)]
|
27 |
-
answer = texts[len(texts):]
|
28 |
# for question, answer in texts:
|
29 |
# question_answer(context, question)
|
30 |
return answer
|
|
|
23 |
return prediction
|
24 |
|
25 |
def greet(texts):
|
26 |
+
question = texts[:int(len(texts)/2)]
|
27 |
+
answer = texts[int(len(texts)/2):]
|
28 |
# for question, answer in texts:
|
29 |
# question_answer(context, question)
|
30 |
return answer
|