Update app.py
Browse files
app.py
CHANGED
@@ -65,21 +65,6 @@ def process_query(query: str, first_turn: bool = False):
|
|
65 |
process_log.append(intro)
|
66 |
_save_process_log(process_log)
|
67 |
return intro
|
68 |
-
|
69 |
-
# ✅ Handle Yes/No replies
|
70 |
-
if query.strip().lower() == "no":
|
71 |
-
no_reply = (
|
72 |
-
"Hello, I’m Wisal, an AI assistant developed by Compumacy AI, "
|
73 |
-
"and a knowledgeable Autism specialist.\n"
|
74 |
-
"If you have any question related to autism, please submit a question specifically about autism."
|
75 |
-
)
|
76 |
-
process_log.append(f"User replied 'No'.\n{no_reply}")
|
77 |
-
_save_process_log(process_log)
|
78 |
-
return no_reply
|
79 |
-
elif query.strip().lower() == "yes":
|
80 |
-
process_log.append("User replied 'Yes'. Continuing system as normal.")
|
81 |
-
|
82 |
-
|
83 |
# 0: Handle simple greetings
|
84 |
if is_greeting(query):
|
85 |
greeting = intro + "Hello! I’m Wisal, your AI assistant developed by Compumacy AI. How can I help you today?"
|
|
|
65 |
process_log.append(intro)
|
66 |
_save_process_log(process_log)
|
67 |
return intro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
# 0: Handle simple greetings
|
69 |
if is_greeting(query):
|
70 |
greeting = intro + "Hello! I’m Wisal, your AI assistant developed by Compumacy AI. How can I help you today?"
|