Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,12 +59,12 @@ def get_response(system_message, chat_history, user_text, max_new_tokens=800):
|
|
| 59 |
f"{msg['role'].capitalize()}: {msg['content']}"
|
| 60 |
for msg in chat_history
|
| 61 |
)
|
| 62 |
-
|
| 63 |
prompt = PromptTemplate.from_template(
|
| 64 |
"[INST] You are a knowledgeable and formal AI assistant. Please provide detailed, structured answers "
|
| 65 |
"without repetition, unnecessary enthusiasm or emojis.\n\n"
|
| 66 |
"Ensure responses are structured and non-repetitive."
|
| 67 |
-
"\nPrevious Conversation:\n{chat_history}\n\n"
|
| 68 |
"User: {user_text}.\n [/INST]\n"
|
| 69 |
"AI: Provide a structured and informative response while maintaining a neutral and professional tone."
|
| 70 |
"Ensure your response is engaging yet clear."
|
|
|
|
| 59 |
f"{msg['role'].capitalize()}: {msg['content']}"
|
| 60 |
for msg in chat_history
|
| 61 |
)
|
| 62 |
+
|
| 63 |
prompt = PromptTemplate.from_template(
|
| 64 |
"[INST] You are a knowledgeable and formal AI assistant. Please provide detailed, structured answers "
|
| 65 |
"without repetition, unnecessary enthusiasm or emojis.\n\n"
|
| 66 |
"Ensure responses are structured and non-repetitive."
|
| 67 |
+
#"\nPrevious Conversation:\n{chat_history}\n\n"
|
| 68 |
"User: {user_text}.\n [/INST]\n"
|
| 69 |
"AI: Provide a structured and informative response while maintaining a neutral and professional tone."
|
| 70 |
"Ensure your response is engaging yet clear."
|