Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
|
|
|
|
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
|