Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -219,7 +219,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 219 |
yield render_message(loading_message), loading_message, ""
|
| 220 |
|
| 221 |
partial_history = history
|
| 222 |
-
|
| 223 |
partial_history = history + [(message, partial_reply, "You", "P-ALPLE", sessions[api_key]["avatar"], ASSISTANT_PIC_PATH)]
|
| 224 |
yield render_message(partial_history), partial_history, ""
|
| 225 |
|
|
|
|
| 219 |
yield render_message(loading_message), loading_message, ""
|
| 220 |
|
| 221 |
partial_history = history
|
| 222 |
+
for partial_reply in respond(message, api_key, max_tokens, top_p, temperature):
|
| 223 |
partial_history = history + [(message, partial_reply, "You", "P-ALPLE", sessions[api_key]["avatar"], ASSISTANT_PIC_PATH)]
|
| 224 |
yield render_message(partial_history), partial_history, ""
|
| 225 |
|