seonglae commited on
Commit
ad19f21
1 Parent(s): b750381

fix: exchange swapt sumamry and context

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,9 +77,9 @@ def main(question: str):
77
 
78
  # Reader
79
  summary = summarize_text(models['summarizer'][0],
80
- models['summarizer'][1], [summary])
81
  answers = ask_reader(models['reader'][0],
82
- models['reader'][1], [question], [ctx])
83
  answer = answers[0]['answer']
84
  print(f"\nAnswer: {answer}")
85
 
 
77
 
78
  # Reader
79
  summary = summarize_text(models['summarizer'][0],
80
+ models['summarizer'][1], [ctx])
81
  answers = ask_reader(models['reader'][0],
82
+ models['reader'][1], [question], [summary])
83
  answer = answers[0]['answer']
84
  print(f"\nAnswer: {answer}")
85