pabloce commited on
Commit
c454519
·
verified ·
1 Parent(s): dd075f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import spaces
2
  import json
3
  import subprocess
 
4
  import gradio as gr
5
  from llama_cpp import Llama
6
  from llama_cpp_agent import LlamaCppAgent
@@ -160,6 +161,8 @@ def respond(
160
  chat_template = get_messages_formatter_type(model)
161
  model_selected = model
162
 
 
 
163
  llm = Llama(
164
  model_path=f"models/{model}",
165
  flash_attn=True,
 
1
  import spaces
2
  import json
3
  import subprocess
4
+ import time
5
  import gradio as gr
6
  from llama_cpp import Llama
7
  from llama_cpp_agent import LlamaCppAgent
 
161
  chat_template = get_messages_formatter_type(model)
162
  model_selected = model
163
 
164
+ system_message += f" {time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))}"
165
+
166
  llm = Llama(
167
  model_path=f"models/{model}",
168
  flash_attn=True,