Spaces:
Sleeping
Sleeping
fix: exchange swapt sumamry and context
Browse files
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], [
|
81 |
answers = ask_reader(models['reader'][0],
|
82 |
-
models['reader'][1], [question], [
|
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 |
|