Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
|
|
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>"
|