MEOW commited on
Commit
6f939cc
·
unverified ·
1 Parent(s): 06be9d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def moderated_chat(message, history):
113
  history.append((message, validated_response.generated_text))
114
  yield history
115
  except Exception as e:
116
- yield history + [(message, f"An error occurred: {str(e)}")]
117
 
118
  # Function to stream responses
119
  def stream_response(message, history):
 
113
  history.append((message, validated_response.generated_text))
114
  yield history
115
  except Exception as e:
116
+ return history + [(message,f"Error processing query: {str(e)}")]
117
 
118
  # Function to stream responses
119
  def stream_response(message, history):