Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -200,7 +200,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 200 |
history_state = gr.State([])
|
| 201 |
last_message_state = gr.State("")
|
| 202 |
|
| 203 |
-
|
| 204 |
loading_message = history + [(message, "Loading...", "You", "P-ALPLE", sessions[api_key]["avatar"], ASSISTANT_PIC_PATH)]
|
| 205 |
yield render_message(loading_message), loading_message, ""
|
| 206 |
|
|
|
|
| 200 |
history_state = gr.State([])
|
| 201 |
last_message_state = gr.State("")
|
| 202 |
|
| 203 |
+
def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
|
| 204 |
loading_message = history + [(message, "Loading...", "You", "P-ALPLE", sessions[api_key]["avatar"], ASSISTANT_PIC_PATH)]
|
| 205 |
yield render_message(loading_message), loading_message, ""
|
| 206 |
|