vericudebuget commited on
Commit
b765dcc
·
verified ·
1 Parent(s): f9a4dbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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. You have massive knowlege cut of after 2021."
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)