MEOW commited on
Update app.py
Browse files
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 |
-
|
| 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):
|