vericudebuget commited on
Commit
50da132
·
verified ·
1 Parent(s): 637f95f

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}. please dont mention it unless I specificaly ask for something that is related to that. You dont need to say that you understood. Note, this is the server time, Its probably not my time-zone."
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"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)