Spaces:
Sleeping
Sleeping
do not preview prompt at error return from chat response
Browse files
app.py
CHANGED
|
@@ -197,7 +197,7 @@ def chat_response(user_msg, chat_history, system_prompt,
|
|
| 197 |
yield history, debug + prompt_debug
|
| 198 |
except Exception as e:
|
| 199 |
history[-1]['content'] = f"Error: {e}"
|
| 200 |
-
yield history, debug
|
| 201 |
finally:
|
| 202 |
gc.collect()
|
| 203 |
|
|
|
|
| 197 |
yield history, debug + prompt_debug
|
| 198 |
except Exception as e:
|
| 199 |
history[-1]['content'] = f"Error: {e}"
|
| 200 |
+
yield history, debug
|
| 201 |
finally:
|
| 202 |
gc.collect()
|
| 203 |
|