datacipen commited on
Commit
4281cae
·
verified ·
1 Parent(s): bbef638

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -532,7 +532,7 @@ async def chat_profile():
532
  ),
533
  cl.Starter(
534
  label="Chargé d'études en SI",
535
- message="chargé d'études en Système d'Information",
536
  icon="/public/public_learn.svg",
537
  )
538
  ]
@@ -615,11 +615,11 @@ async def main(message: cl.Message):
615
  displayTable = df_intitule.sort_values(by=['obs'], ascending=True).to_markdown
616
  await cl.Message(author="COPILOT", content=displayTable).send()
617
 
618
- df_FT_Select = df_FT[['intitule','typeContratLibelle','experienceLibelle','competences','description','qualitesProfessionnelles','salaire','lieuTravail','formations']].copy()
619
  list_FT = df_FT_Select.values.tolist()
620
  context = ''
621
  for i in range(0,len(list_FT)):
622
- context += "\n✔️ Emploi : " + str(list_FT[i][0]) + ";\n◉ Contrat : " + str(list_FT[i][1]) + ";\n◉ Compétences professionnelles : " + str(list_FT[i][3]).replace("{","").replace("}","").replace("[","").replace("]","").replace("code","").replace("libelle","") + ";\n" + "◉ Salaire : " + str(list_FT[i][6]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Qualification : " + str(list_FT[i][5]).replace("'libelle'","\n• 'libelle").replace("{","").replace("}","").replace("[","").replace("]","").replace("code","") + ";\n◉ Localisation : " + str(list_FT[i][7]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Expérience : " + str(list_FT[i][2]) + ";\n◉ Niveau de qualification : " + str(list_FT[i][8]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Description de l'emploi : " + str(list_FT[i][4]) + "\n"
623
 
624
  listEmplois_name = f"Liste des emplois"
625
  text_elements = []
 
532
  ),
533
  cl.Starter(
534
  label="Chargé d'études en SI",
535
+ message="chargé d'études en Système Informatique",
536
  icon="/public/public_learn.svg",
537
  )
538
  ]
 
615
  displayTable = df_intitule.sort_values(by=['obs'], ascending=True).to_markdown
616
  await cl.Message(author="COPILOT", content=displayTable).send()
617
 
618
+ df_FT_Select = df_FT[['intitule','typeContratLibelle','experienceLibelle','competences','description','qualitesProfessionnelles','salaire','lieuTravail','formations','id']].copy()
619
  list_FT = df_FT_Select.values.tolist()
620
  context = ''
621
  for i in range(0,len(list_FT)):
622
+ context += "\n✔️ Emploi : " + str(list_FT[i][0]) + ";\nURL : https://candidat.francetravail.fr/offres/recherche/detail/" + str(list_FT[i][9]) + ;"\n◉ Contrat : " + str(list_FT[i][1]) + ";\n◉ Compétences professionnelles : " + str(list_FT[i][3]).replace("{","").replace("}","").replace("[","").replace("]","").replace("code","").replace("libelle","") + ";\n" + "◉ Salaire : " + str(list_FT[i][6]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Qualification : " + str(list_FT[i][5]).replace("'libelle'","\n• 'libelle").replace("{","").replace("}","").replace("[","").replace("]","").replace("code","") + ";\n◉ Localisation : " + str(list_FT[i][7]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Expérience : " + str(list_FT[i][2]) + ";\n◉ Niveau de qualification : " + str(list_FT[i][8]).replace("{","").replace("}","").replace("[","").replace("]","") + ";\n◉ Description de l'emploi : " + str(list_FT[i][4]) + "\n"
623
 
624
  listEmplois_name = f"Liste des emplois"
625
  text_elements = []