Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ class Chatbot():
|
|
| 49 |
# get top 40 relevant passages
|
| 50 |
passages = '. '.join([p.replace('\n',', ') for p in passages[:40]])
|
| 51 |
QA_input = {
|
| 52 |
-
'question':
|
| 53 |
'context': passages }
|
| 54 |
if len(QA_input['question'].strip()) > 0:
|
| 55 |
start = time.time()
|
|
|
|
| 49 |
# get top 40 relevant passages
|
| 50 |
passages = '. '.join([p.replace('\n',', ') for p in passages[:40]])
|
| 51 |
QA_input = {
|
| 52 |
+
'question': question,
|
| 53 |
'context': passages }
|
| 54 |
if len(QA_input['question'].strip()) > 0:
|
| 55 |
start = time.time()
|