philmui commited on
Commit
7700877
1 Parent(s): f8b0dc9

adding logs

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,6 +41,7 @@ async def main(message: cl.Message):
41
  @cl.on_chat_start
42
  async def start():
43
 
 
44
  await cl.Avatar(
45
  name="Chatbot",
46
  url="https://cdn-icons-png.flaticon.com/512/8649/8649595.png"
@@ -49,7 +50,6 @@ async def start():
49
  name="User",
50
  url="https://media.architecturaldigest.com/photos/5f241de2c850b2a36b415024/master/w_1600%2Cc_limit/Luke-logo.png"
51
  ).send()
52
-
53
  content = ""
54
  # if _semantic_rag_chain is not None:
55
  # try:
@@ -66,6 +66,7 @@ async def start():
66
  # _logger.error(f"init error: {e}")
67
 
68
  cl.user_session.set("message_history", [{"role": "system", "content": "You are a helpful assistant. "}])
 
69
  await cl.Message(
70
  content=content + "\nHow can I help you with Meta's 2023 10K?"
71
  ).send()
 
41
  @cl.on_chat_start
42
  async def start():
43
 
44
+ _logger.info("==> starting ...")
45
  await cl.Avatar(
46
  name="Chatbot",
47
  url="https://cdn-icons-png.flaticon.com/512/8649/8649595.png"
 
50
  name="User",
51
  url="https://media.architecturaldigest.com/photos/5f241de2c850b2a36b415024/master/w_1600%2Cc_limit/Luke-logo.png"
52
  ).send()
 
53
  content = ""
54
  # if _semantic_rag_chain is not None:
55
  # try:
 
66
  # _logger.error(f"init error: {e}")
67
 
68
  cl.user_session.set("message_history", [{"role": "system", "content": "You are a helpful assistant. "}])
69
+ _logger.info("\tsending message back: ready!!!")
70
  await cl.Message(
71
  content=content + "\nHow can I help you with Meta's 2023 10K?"
72
  ).send()