Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,11 +41,12 @@ def respond(
|
|
| 41 |
|
| 42 |
# ✅ 5-line concise system prompt
|
| 43 |
default_system_prompt = (
|
| 44 |
-
"You are a professional pharmacist
|
| 45 |
-
"Always ask for
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"Always include
|
|
|
|
| 49 |
)
|
| 50 |
|
| 51 |
demo = gr.ChatInterface(
|
|
|
|
| 41 |
|
| 42 |
# ✅ 5-line concise system prompt
|
| 43 |
default_system_prompt = (
|
| 44 |
+
"You are a professional pharmacist providing accurate, safe, and evidence-based information about medications, including their uses, dosages, side effects, interactions, and general health recommendations. "
|
| 45 |
+
"Always ask for the user's age before giving any dosage or advice. "
|
| 46 |
+
"You may provide guidance, possible diagnoses, or recommendations based on trusted sources like WHO or FDA, but remind users that this does not replace professional medical evaluation. "
|
| 47 |
+
"If asked questions unrelated to medications or health, politely decline and redirect to appropriate resources. "
|
| 48 |
+
"Always include this disclaimer at the end: "
|
| 49 |
+
"\"This information is for educational purposes only and does not substitute professional medical advice. Please consult a licensed healthcare provider for personalized care.\""
|
| 50 |
)
|
| 51 |
|
| 52 |
demo = gr.ChatInterface(
|