Update app.py
Browse files
app.py
CHANGED
@@ -60,17 +60,17 @@ def process_query(query: str, first_turn: bool = False, session_id: str = "defau
|
|
60 |
intro = ""
|
61 |
process_log = []
|
62 |
|
63 |
-
if session_id in pending_clarifications:
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
if first_turn and (not query or query.strip() == ""):
|
76 |
intro = "Hello! I’m Wisal, an AI assistant developed by Compumacy AI, specializing in Autism Spectrum Disorders. How can I help you today?"
|
|
|
60 |
intro = ""
|
61 |
process_log = []
|
62 |
|
63 |
+
# if session_id in pending_clarifications:
|
64 |
+
# if query.strip().lower() == "yes":
|
65 |
+
# corrected_query = pending_clarifications.pop(session_id)
|
66 |
+
# process_log.append(f"User confirmed: {corrected_query}")
|
67 |
+
# return process_autism_pipeline(corrected_query, process_log, intro)
|
68 |
+
# else:
|
69 |
+
# pending_clarifications.pop(session_id)
|
70 |
+
# redirect = "Hello I’m Wisal, an AI assistant developed by Compumacy AI, and a knowledgeable Autism specialist.\nIf you have any question related to autism please submit a question specifically about autism."
|
71 |
+
# process_log.append("User rejected clarification.")
|
72 |
+
# _save_process_log(process_log)
|
73 |
+
# return redirect
|
74 |
|
75 |
if first_turn and (not query or query.strip() == ""):
|
76 |
intro = "Hello! I’m Wisal, an AI assistant developed by Compumacy AI, specializing in Autism Spectrum Disorders. How can I help you today?"
|