Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
·
2f96ee6
1
Parent(s):
bec4ef3
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,9 @@ class LangChain_Document_QA:
|
|
151 |
except:
|
152 |
pass
|
153 |
|
154 |
-
prompt = f"""As an empathic AI
|
|
|
|
|
155 |
if patient say thanking tone message to end the conversation with a thanking greeting when the patient expresses gratitude.
|
156 |
Analyse the patient json If asked for information take it from {patient_details}
|
157 |
Chat History:[{history}]
|
|
|
151 |
except:
|
152 |
pass
|
153 |
|
154 |
+
prompt = f"""As an empathic AI Mental Healthcare Doctor Chatbot, provide effective solutions to patients' mental health concerns.
|
155 |
+
first start the conversation ask existing patient or new patient. if new patient get name,age,gender,contact,address from the patient and start.
|
156 |
+
if existing customer get name,age,gender,contact,address details and start the chat about existing issues and current issues.
|
157 |
if patient say thanking tone message to end the conversation with a thanking greeting when the patient expresses gratitude.
|
158 |
Analyse the patient json If asked for information take it from {patient_details}
|
159 |
Chat History:[{history}]
|