datacipen commited on
Commit
45f7dcb
1 Parent(s): ea5699e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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="Note composante sectorielle - NCS",markdown_description="Note composante sectorielle",icon="./public/favicon.png",),
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] == 'NCS':
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('@')