CountingMstar commited on
Commit
453e156
1 Parent(s): 9a229a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -57,8 +57,10 @@ def question_answer(context, question):
57
  return prediction
58
 
59
  def greet(texts):
60
- # for question, answer in texts:
61
- # question_answer(context, question)
 
 
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")