teddyllm commited on
Commit
8f6f846
1 Parent(s): 8b62fd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def chat_gen(message, history, return_buffer=True):
76
  }
77
  ai_msg = conv_chain.invoke(state)
78
  print(ai_msg)
79
- for token in ai_msg["answer"]:
80
  buffer += token
81
  yield buffer
82
 
 
76
  }
77
  ai_msg = conv_chain.invoke(state)
78
  print(ai_msg)
79
+ for token in ai_msg:
80
  buffer += token
81
  yield buffer
82