CCockrum commited on
Commit
f2bd3f9
·
verified ·
1 Parent(s): a53e6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -196,14 +196,16 @@ for message in st.session_state.chat_history:
196
  st.markdown("</div>", unsafe_allow_html=True)
197
 
198
 
199
- prompt = PromptTemplate.from_template(
200
- "[INST] You are a knowledgeable and formal AI assistant. Please provide detailed, structured answers "
201
- "without unnecessary enthusiasm or emojis.\n\n"
202
- "Current Conversation:\n{chat_history}\n\n"
203
- "User: {user_text}.\n [/INST]\n"
204
- "AI: Provide a structured and informative response while maintaining a neutral and professional tone."
205
- "Ensure your response is engaging yet clear."
206
- "\nHAL:"
 
 
207
  )
208
 
209
  # ✅ Invoke Hugging Face Model
 
196
  st.markdown("</div>", unsafe_allow_html=True)
197
 
198
 
199
+ prompt = PromptTemplate.from_template(
200
+ "[INST] You are a knowledgeable and formal AI assistant. Please provide detailed, structured answers "
201
+ "without unnecessary enthusiasm or emojis.\n\n"
202
+ "Ensure responses are structured and non-repetitive."
203
+ "\nPrevious Conversation:\n{chat_history}\n\n"
204
+ "Current Conversation:\n{chat_history}\n\n"
205
+ "User: {user_text}.\n [/INST]\n"
206
+ "AI: Provide a structured and informative response while maintaining a neutral and professional tone."
207
+ "Ensure your response is engaging yet clear."
208
+ "\nHAL:"
209
  )
210
 
211
  # ✅ Invoke Hugging Face Model