vericudebuget commited on
Commit
92cab31
1 Parent(s): b40c087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
28
  # Get current time
29
  now = datetime.datetime.now()
30
  formatted_time = now.strftime("%H.%M.%S, %B, %Y")
31
- system_prompt = f"~ This message betwheen tildes is an automated mesage. server time:{formatted_time}~"
32
 
33
  formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
34
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
@@ -52,5 +52,7 @@ gr.ChatInterface(
52
  submit_btn="➢",
53
  retry_btn="Retry",
54
  undo_btn="↩ Undo",
 
 
55
  concurrency_limit=100,
56
  ).launch(show_api=False)
 
28
  # Get current time
29
  now = datetime.datetime.now()
30
  formatted_time = now.strftime("%H.%M.%S, %B, %Y")
31
+ system_prompt = f"~System time{formatted_time}~"
32
 
33
  formatted_prompt = format_prompt(f"{system_prompt}, {prompt}", history)
34
  stream = client.text_generation(formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
 
52
  submit_btn="➢",
53
  retry_btn="Retry",
54
  undo_btn="↩ Undo",
55
+ clear_btn="Clear (new chat)",
56
+ stop_btn="Stop ▢"
57
  concurrency_limit=100,
58
  ).launch(show_api=False)