saadkhi commited on
Commit
a0fbd48
·
verified ·
1 Parent(s): f5903a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,9 +52,9 @@ def generate_sql(user_input):
52
  if not user_input.strip():
53
  return "Enter SQL question."
54
 
55
- # 🔴 HARD GUARD
56
  if not is_sql_related(user_input):
57
- return " This demo only supports SQL and database related questions."
58
 
59
  prompt = f"""
60
  {SYSTEM_PROMPT}
 
52
  if not user_input.strip():
53
  return "Enter SQL question."
54
 
55
+ # HARD GUARD
56
  if not is_sql_related(user_input):
57
+ return "I only respond to SQL and database related questions. If you want, I can craft helpful database queries for you."
58
 
59
  prompt = f"""
60
  {SYSTEM_PROMPT}