vericudebuget commited on
Commit
eee3f29
·
verified ·
1 Parent(s): b3d36a3

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"It may not be relevant in this conversation but the exact time is {formatted_time}. Note that I do not know it. If i greet you, you only say Hi back. Thats it."
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}."
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)