Spaces:
YZ03
/
Runtime error

YZ03 commited on
Commit
c08cd2a
·
verified ·
1 Parent(s): d4daa7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -76,6 +76,8 @@ def log_message(role: str, text: str):
76
  with open(LOG_PATH, "a", encoding="utf-8") as f:
77
  f.write(f"{role.upper()}: {text}\n\n")
78
 
 
 
79
  def respond(message, history: list[dict]):
80
 
81
  log_message("user", message)
@@ -84,6 +86,7 @@ def respond(message, history: list[dict]):
84
  "query": message,
85
  "chat_history": history #[{"role": m.role, "content": m.content} for m in history]
86
  })
 
87
  raw = agent_output["output"]
88
  print(message)
89
 
 
76
  with open(LOG_PATH, "a", encoding="utf-8") as f:
77
  f.write(f"{role.upper()}: {text}\n\n")
78
 
79
+ log_message("YAQIN", "New Chat")
80
+
81
  def respond(message, history: list[dict]):
82
 
83
  log_message("user", message)
 
86
  "query": message,
87
  "chat_history": history #[{"role": m.role, "content": m.content} for m in history]
88
  })
89
+
90
  raw = agent_output["output"]
91
  print(message)
92