Luigi commited on
Commit
c09049b
·
1 Parent(s): 12dd3f3

do not preview prompt at error return from chat response

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 + prompt_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