Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,8 +176,10 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
176 |
last_message_state = gr.State("")
|
177 |
|
178 |
def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
|
179 |
-
history, assistant_reply = respond(message,
|
180 |
-
|
|
|
|
|
181 |
|
182 |
def regenerate_response(history, last_message, max_tokens, top_p, temperature):
|
183 |
return "", []
|
|
|
176 |
last_message_state = gr.State("")
|
177 |
|
178 |
def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
|
179 |
+
history, assistant_reply = respond(message, history, system_message, max_tokens, top_p, temperature)
|
180 |
+
response_html = render_message(history)
|
181 |
+
|
182 |
+
return response_html, history, "", message
|
183 |
|
184 |
def regenerate_response(history, last_message, max_tokens, top_p, temperature):
|
185 |
return "", []
|