Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def pdf_changes(pdf_doc):
|
|
48 |
return "Ready"
|
49 |
|
50 |
def text(history, text):
|
51 |
-
result =
|
52 |
history.append((text, result['answer']))
|
53 |
|
54 |
return history,""
|
|
|
48 |
return "Ready"
|
49 |
|
50 |
def text(history, text):
|
51 |
+
result = qa({'question': text, 'chat_history': history})
|
52 |
history.append((text, result['answer']))
|
53 |
|
54 |
return history,""
|