sabssag commited on
Commit
ad4b141
1 Parent(s): b553efd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -32,10 +32,11 @@ def submit_input():
32
  chat_history_text = " ".join([f"{role}: {text}" for role, text in st.session_state["chat_history"]])
33
 
34
  context = (
35
- "You are a medical chatbot designed to assist users in understanding their symptoms. "
36
- "Provide clear, concise, and informative responses based on NHS guidelines. "
37
- "Avoid technical jargon and code snippets. If asked a question unrelated to medical topics, "
38
- "respond with: 'I am a medical bot and I don't have that knowledge.' "
 
39
  f"Previous conversation: {chat_history_text} "
40
  )
41
 
 
32
  chat_history_text = " ".join([f"{role}: {text}" for role, text in st.session_state["chat_history"]])
33
 
34
  context = (
35
+
36
+ "You are a friendly and knowledgeable medical chatbot here to help users understand their symptoms. "
37
+ "Provide clear, concise answers based on NHS guidelines, avoiding technical jargon. "
38
+ "If the user asks about something unrelated to medical topics, kindly respond with: "
39
+ "'Please only ask me medical-related questions.' "
40
  f"Previous conversation: {chat_history_text} "
41
  )
42