Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
|
|
30 |
# Get current time
|
31 |
now = datetime.datetime.now()
|
32 |
formatted_time = now.strftime("%H.%M.%S, %B, %Y")
|
33 |
-
system_prompt = f"server log: This message was sent at {formatted_time}. The actual year is 2024
|
34 |
|
35 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
36 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
|
|
30 |
# Get current time
|
31 |
now = datetime.datetime.now()
|
32 |
formatted_time = now.strftime("%H.%M.%S, %B, %Y")
|
33 |
+
system_prompt = f"server log: ~This message was sent at {formatted_time}. The actual year is 2024.~"
|
34 |
|
35 |
formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
|
36 |
stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|