teddyllm commited on
Commit
efb12ec
1 Parent(s): 004e826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -74,7 +74,8 @@ def chat_gen(message, history, return_buffer=True):
74
  'question': message,
75
  'context': retrieved_docs
76
  }
77
- for token in conv_chain.stream(state):
 
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