Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -172,7 +172,7 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
172 |
new_message_html += f"<img src='{ASSISTANT_PIC_PATH}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
173 |
new_message_html += f"{assistant_reply}</div><br>"
|
174 |
|
175 |
-
return gr.update(value=new_message_html
|
176 |
|
177 |
|
178 |
def regenerate_response(history, last_message, max_tokens, top_p, temperature):
|
|
|
172 |
new_message_html += f"<img src='{ASSISTANT_PIC_PATH}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
173 |
new_message_html += f"{assistant_reply}</div><br>"
|
174 |
|
175 |
+
return gr.update(value=new_message_html), history, "", message
|
176 |
|
177 |
|
178 |
def regenerate_response(history, last_message, max_tokens, top_p, temperature):
|