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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
- #client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
5
- client = InferenceClient("stanford-crfm/meditron-7b")
6
 
7
  def respond(
8
  message,
@@ -41,8 +41,8 @@ def respond(
41
 
42
  # ✅ 5-line concise system prompt
43
  default_system_prompt = (
44
- "You are a professional pharmacist specializing in medications. "
45
- "Always 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."
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
5
+ #client = InferenceClient("stanford-crfm/meditron-7b")
6
 
7
  def respond(
8
  message,
 
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."