Ludovicollin commited on
Commit
34b3a00
·
verified ·
1 Parent(s): 1e73568

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -585,7 +585,7 @@ def to_cache(file):
585
  # cl.ChatProfile(name="Note composante sectorielle - NCS",markdown_description="Note composante sectorielle",icon="./public/favicon.png",),
586
  # ]
587
  @cl.on_chat_start
588
- async def start():
589
  await cl.Avatar(
590
  name="You",
591
  path="./public/logo-ofipe.jpg",
@@ -621,7 +621,7 @@ async def start():
621
  ).send()
622
  value = settings["rome"]
623
 
624
- if len(value) < 1:
625
  warning = [
626
  cl.Image(name="Warning", size="small", display="inline", path="./public/warning.png")
627
  ]
 
585
  # cl.ChatProfile(name="Note composante sectorielle - NCS",markdown_description="Note composante sectorielle",icon="./public/favicon.png",),
586
  # ]
587
  @cl.on_chat_start
588
+ async def on_chat_start():
589
  await cl.Avatar(
590
  name="You",
591
  path="./public/logo-ofipe.jpg",
 
621
  ).send()
622
  value = settings["rome"]
623
 
624
+ if len(value) < 2:
625
  warning = [
626
  cl.Image(name="Warning", size="small", display="inline", path="./public/warning.png")
627
  ]