vilarin commited on
Commit
33028cc
·
verified ·
1 Parent(s): ed5044e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -135,7 +135,10 @@ async def stream_chat(message: str, history: list, model: str, temperature: floa
135
  'low_vram': True,
136
  },
137
  ):
138
- yield part['message']['content']
 
 
 
139
 
140
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
141
 
 
135
  'low_vram': True,
136
  },
137
  ):
138
+
139
+ buffer = ""
140
+ buffer += part['message']['content']
141
+ yield buffer
142
 
143
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
144