Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,8 @@ def chat_gen(message, history, return_buffer=True):
|
|
74 |
'question': message,
|
75 |
'context': retrieved_docs
|
76 |
}
|
77 |
-
|
|
|
78 |
buffer += token
|
79 |
yield buffer
|
80 |
|
|
|
74 |
'question': message,
|
75 |
'context': retrieved_docs
|
76 |
}
|
77 |
+
ai_msg = conv_chain.invoke(state)
|
78 |
+
for token in ai_msg["answer"]:
|
79 |
buffer += token
|
80 |
yield buffer
|
81 |
|