datacipen commited on
Commit
61a68fd
1 Parent(s): 901ba08

Update homeskills.py

Browse files
Files changed (1) hide show
  1. homeskills.py +8 -7
homeskills.py CHANGED
@@ -3,16 +3,13 @@ import chainlit as cl
3
  from chainlit.input_widget import Select, TextInput
4
  from chainlit import user_session
5
 
6
- def homemsg():
7
  app_user = cl.user_session.get("user")
8
  welcomeUser = app_user.identifier
9
  welcomeUserArray = welcomeUser.split('@')
10
  welcomeUserStr = welcomeUserArray[0].replace('.',' ')
11
  await cl.Message(f"> Bonjour {welcomeUserStr}").send()
12
-
13
- async def homeRome():
14
- homemsg()
15
- fileCompetences = './public/referentiel_competence.csv'
16
  df_allcompetences = pd.read_csv(fileCompetences)
17
  df_competences = df_allcompetences[['libelle_competence']].copy()
18
  df_competences = df_competences.sort_values(by=['libelle_competence'])
@@ -46,8 +43,12 @@ async def homeRome():
46
  return contextChat
47
 
48
  async def homeEsco():
49
- homemsg()
50
- fileCompetences = './public/escoCompetencesAppellation.csv'
 
 
 
 
51
  df_allcompetences = pd.read_csv(fileCompetences)
52
  df_competences = df_allcompetences[['compétence']].copy()
53
  df_competences = df_competences.sort_values(by=['compétence'])
 
3
  from chainlit.input_widget import Select, TextInput
4
  from chainlit import user_session
5
 
6
+ async def homeRome():
7
  app_user = cl.user_session.get("user")
8
  welcomeUser = app_user.identifier
9
  welcomeUserArray = welcomeUser.split('@')
10
  welcomeUserStr = welcomeUserArray[0].replace('.',' ')
11
  await cl.Message(f"> Bonjour {welcomeUserStr}").send()
12
+ fileCompetences = "./public/referentiel_competence.csv"
 
 
 
13
  df_allcompetences = pd.read_csv(fileCompetences)
14
  df_competences = df_allcompetences[['libelle_competence']].copy()
15
  df_competences = df_competences.sort_values(by=['libelle_competence'])
 
43
  return contextChat
44
 
45
  async def homeEsco():
46
+ app_user = cl.user_session.get("user")
47
+ welcomeUser = app_user.identifier
48
+ welcomeUserArray = welcomeUser.split('@')
49
+ welcomeUserStr = welcomeUserArray[0].replace('.',' ')
50
+ await cl.Message(f"> Bonjour {welcomeUserStr}").send()
51
+ fileCompetences = "./public/escoCompetencesAppellation.csv"
52
  df_allcompetences = pd.read_csv(fileCompetences)
53
  df_competences = df_allcompetences[['compétence']].copy()
54
  df_competences = df_competences.sort_values(by=['compétence'])