Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def main_loop(message, history):
|
|
41 |
Main loop for the chatbot to handle user input.
|
42 |
"""
|
43 |
# Validate the user's input for safety
|
44 |
-
if not is_safe(message):
|
45 |
-
return "Your input violates our safety policy. Please try again with a finance-related query."
|
46 |
|
47 |
# Generate and validate the response
|
48 |
return run_action(message, history)
|
|
|
41 |
Main loop for the chatbot to handle user input.
|
42 |
"""
|
43 |
# Validate the user's input for safety
|
44 |
+
# if not is_safe(message):
|
45 |
+
# return "Your input violates our safety policy. Please try again with a finance-related query."
|
46 |
|
47 |
# Generate and validate the response
|
48 |
return run_action(message, history)
|