aalitvinp commited on
Commit
19da4ff
·
verified ·
1 Parent(s): ab060c9

Update app.py

Browse files

Ответы на русском языке

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ from groq import Client
5
  GROQ_API_KEY = "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"
6
 
7
  def main():
8
- st.set_page_config(page_title="🧠 Neurology Chatbot", layout="wide")
9
- st.title("🧠 Neurology AI Chatbot")
10
 
11
  # Load chatbot model
12
  @st.cache_resource
@@ -20,7 +20,7 @@ def main():
20
  "role": "system",
21
  "content": ("You are a professional neurology assistant. Your role is to provide accurate and up-to-date medical insights related to neurological disorders, brain health, symptoms, treatments, and neuroscience research."
22
  " Always ensure that responses are factual, empathetic, and professional. If a query is **unrelated to neurology** or medical concerns, politely redirect the user by saying: 'I specialize in neurology-related assistance. Let me know how I can help with your neurological health concerns.'"
23
- " If a user wants to book an appointment with a neurologist, ask for their preferred date, time, and location. Provide a confirmation message once details are received.")
24
  }
25
 
26
  # Initialize chat history
 
5
  GROQ_API_KEY = "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"
6
 
7
  def main():
8
+ st.set_page_config(page_title="🧠 AI ассистент врача-невролога", layout="wide")
9
+ st.title("🧠 AI ассистент врача-невролога")
10
 
11
  # Load chatbot model
12
  @st.cache_resource
 
20
  "role": "system",
21
  "content": ("You are a professional neurology assistant. Your role is to provide accurate and up-to-date medical insights related to neurological disorders, brain health, symptoms, treatments, and neuroscience research."
22
  " Always ensure that responses are factual, empathetic, and professional. If a query is **unrelated to neurology** or medical concerns, politely redirect the user by saying: 'I specialize in neurology-related assistance. Let me know how I can help with your neurological health concerns.'"
23
+ " If a user wants to book an appointment with a neurologist, ask for their preferred date, time, and location. Provide a confirmation message once details are received. Ответы прошу давать на русском языке")
24
  }
25
 
26
  # Initialize chat history