Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow: auto; border: 1px solid #
|
|
147 |
history_state = gr.State([])
|
148 |
last_message_state = gr.State("")
|
149 |
|
150 |
-
|
151 |
history, assistant_reply = respond(message, api_key, max_tokens, top_p, temperature)
|
152 |
|
153 |
for user_message, assistant_message, user_profile, assistant_profile, user_pic, assistant_pic in history:
|
|
|
147 |
history_state = gr.State([])
|
148 |
last_message_state = gr.State("")
|
149 |
|
150 |
+
def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
|
151 |
history, assistant_reply = respond(message, api_key, max_tokens, top_p, temperature)
|
152 |
|
153 |
for user_message, assistant_message, user_profile, assistant_profile, user_pic, assistant_pic in history:
|