Spaces:
Paused
Paused
Commit
·
453e156
1
Parent(s):
9a229a7
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,8 +57,10 @@ def question_answer(context, question):
|
|
| 57 |
return prediction
|
| 58 |
|
| 59 |
def greet(texts):
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
| 62 |
return texts
|
| 63 |
|
| 64 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 57 |
return prediction
|
| 58 |
|
| 59 |
def greet(texts):
|
| 60 |
+
question = texts[:len(texts)]
|
| 61 |
+
answer = texts[len(texts):]
|
| 62 |
+
for question, answer in texts:
|
| 63 |
+
question_answer(context, question)
|
| 64 |
return texts
|
| 65 |
|
| 66 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|