Spaces:
Build error
Build error
Update app.py
#3
by
Chandrasrishti
- opened
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def pdf_changes(pdf_doc):
|
|
| 44 |
return "Ready"
|
| 45 |
|
| 46 |
def query(history, text):
|
| 47 |
-
result = qa({'question':
|
| 48 |
history.append((text, result['answer']))
|
| 49 |
|
| 50 |
return history,""
|
|
|
|
| 44 |
return "Ready"
|
| 45 |
|
| 46 |
def query(history, text):
|
| 47 |
+
result = qa({'question':question, 'chat_history': history})
|
| 48 |
history.append((text, result['answer']))
|
| 49 |
|
| 50 |
return history,""
|