Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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 |
|