Spaces:
Sleeping
Sleeping
Fixing call to qa_memory
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ qa_memory = ConversationalRetrievalChain.from_llm(
|
|
| 47 |
# Streamed response emulator
|
| 48 |
def response_generator(prompt):
|
| 49 |
|
| 50 |
-
response = qa_memory({"
|
| 51 |
|
| 52 |
# Fake streaming
|
| 53 |
for word in response.split():
|
|
|
|
| 47 |
# Streamed response emulator
|
| 48 |
def response_generator(prompt):
|
| 49 |
|
| 50 |
+
response = qa_memory({"question": prompt})['result']
|
| 51 |
|
| 52 |
# Fake streaming
|
| 53 |
for word in response.split():
|