Update main.py
Browse files
main.py
CHANGED
@@ -409,7 +409,7 @@ def to_cache(file):
|
|
409 |
@cl.set_chat_profiles
|
410 |
async def chat_profile():
|
411 |
return [
|
412 |
-
cl.ChatProfile(name="
|
413 |
]
|
414 |
@cl.on_chat_start
|
415 |
async def start():
|
@@ -420,7 +420,7 @@ async def start():
|
|
420 |
chat_profile = cl.user_session.get("chat_profile")
|
421 |
chatProfile = chat_profile.split(' - ')
|
422 |
|
423 |
-
if chatProfile[1] == '
|
424 |
app_user = cl.user_session.get("user")
|
425 |
welcomeUser = app_user.identifier
|
426 |
welcomeUserArray = welcomeUser.split('@')
|
|
|
409 |
@cl.set_chat_profiles
|
410 |
async def chat_profile():
|
411 |
return [
|
412 |
+
cl.ChatProfile(name="Catalogue ROME - ROMESKILLS",markdown_description="Note composante sectorielle",icon="./public/favicon.png",),
|
413 |
]
|
414 |
@cl.on_chat_start
|
415 |
async def start():
|
|
|
420 |
chat_profile = cl.user_session.get("chat_profile")
|
421 |
chatProfile = chat_profile.split(' - ')
|
422 |
|
423 |
+
if chatProfile[1] == 'ROMESKILLS':
|
424 |
app_user = cl.user_session.get("user")
|
425 |
welcomeUser = app_user.identifier
|
426 |
welcomeUserArray = welcomeUser.split('@')
|