Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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
|
| 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) <
|
| 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 |
]
|