Kushagra8041 commited on
Commit
57c8c0c
·
verified ·
1 Parent(s): b5ef2ac

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -112,7 +112,7 @@ def chat(message: str, history):
112
 
113
  for token in streamer:
114
  result += token
115
- history[-1] = (message, result)
116
  # Yielding history directly maps perfectly to gr.Chatbot
117
  yield history
118
 
 
112
 
113
  for token in streamer:
114
  result += token
115
+ history[-1]["content"] = result
116
  # Yielding history directly maps perfectly to gr.Chatbot
117
  yield history
118