drmasad commited on
Commit
4e2c764
·
verified ·
1 Parent(s): 02271a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -102,8 +102,9 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
102
  # Add user message to chat history
103
  st.session_state.messages.append({"role": "user", "content": prompt})
104
 
105
- # Define instructions for the model
106
- instructions = "Respond as an expert doctor in diabetes. Ensure the response is informative and directly answers the user's question."
 
107
 
108
  # Create the full prompt with instructions
109
  full_prompt = f"<s>[INST] {prompt} [/INST] {instructions}</s>"
 
102
  # Add user message to chat history
103
  st.session_state.messages.append({"role": "user", "content": prompt})
104
 
105
+ # Define instructions for the model to focus on conciseness and relevance
106
+ instructions = "Respond as an expert doctor in diabetes. Provide concise, informative answers that directly address the user's question only. Avoid extraneous information."
107
+
108
 
109
  # Create the full prompt with instructions
110
  full_prompt = f"<s>[INST] {prompt} [/INST] {instructions}</s>"