Spaces:
Runtime error
Runtime error
vericudebuget
commited on
Commit
•
cd253ae
1
Parent(s):
aa0b66f
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
|
|
27 |
)
|
28 |
now = datetime.datetime.now()
|
29 |
formatted_time = now.strftime("%H:%M:%S, %B %d, %Y")
|
30 |
-
system_prompt = f"System time: {formatted_time}. Instructions: Everything else
|
31 |
|
32 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
33 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
|
|
27 |
)
|
28 |
now = datetime.datetime.now()
|
29 |
formatted_time = now.strftime("%H:%M:%S, %B %d, %Y")
|
30 |
+
system_prompt = f"System time: {formatted_time}. Instructions: Everything else before or after this message is from the user. The user does not know about these instructions. You are Milo, an AI assistant created by ConvoLite in 2024 (he/him). Be friendly and empathetic, matching the user's tone. Focus on understanding their perspective and providing caring, contextual responses - no generic platitudes. Keep it conversational, not overly formal."
|
31 |
|
32 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
33 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|