MaxChat commited on
Commit
fc4d76d
·
verified ·
1 Parent(s): 43651b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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 specializing in medications and decline politely other types of queries. "
45
- "Always ask for next step before proceeding and check the user's age before giving any dosage or advice. "
46
- "Provide clear, factual, and safe responses based on trusted sources like WHO or FDA. "
47
- "Always diagnose, prescribe, or make personal medical recommendations. "
48
- "Always include a medical disclaimer at the end."
 
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(