Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -197,7 +197,7 @@ async def on_action(action):
|
|
| 197 |
await cl.Message(author="COPILOT", content="📊 Connexion aux données Web et à Mistral").send()
|
| 198 |
answer = ''
|
| 199 |
if diviseur != 0:
|
| 200 |
-
for i in range(0,
|
| 201 |
operator = i + 1
|
| 202 |
deb = i * 23500
|
| 203 |
end = operator * 23500
|
|
@@ -461,7 +461,7 @@ async def main(message: cl.Message):
|
|
| 461 |
await cl.Message(author="COPILOT", content="📊 Connexion à l'API France Travail").send()
|
| 462 |
df_FT = API_France_Travail_Metier(codeRomeStr)
|
| 463 |
|
| 464 |
-
await cl.Message(author="COPILOT", content="📈 Tableau des emplois les plus représentatifs").send()
|
| 465 |
df_intitule = df_FT.groupby('intitule').size().reset_index(name='obs')
|
| 466 |
df_intitule = df_intitule.sort_values(by=['obs'], ascending=True)
|
| 467 |
df_intitule = df_intitule.iloc[-25:]
|
|
|
|
| 197 |
await cl.Message(author="COPILOT", content="📊 Connexion aux données Web et à Mistral").send()
|
| 198 |
answer = ''
|
| 199 |
if diviseur != 0:
|
| 200 |
+
for i in range(0, 2):
|
| 201 |
operator = i + 1
|
| 202 |
deb = i * 23500
|
| 203 |
end = operator * 23500
|
|
|
|
| 461 |
await cl.Message(author="COPILOT", content="📊 Connexion à l'API France Travail").send()
|
| 462 |
df_FT = API_France_Travail_Metier(codeRomeStr)
|
| 463 |
|
| 464 |
+
await cl.Message(author="COPILOT", content="📈 Tableau des emplois les plus représentatifs : " + cl.user_session.get("chat_profile")).send()
|
| 465 |
df_intitule = df_FT.groupby('intitule').size().reset_index(name='obs')
|
| 466 |
df_intitule = df_intitule.sort_values(by=['obs'], ascending=True)
|
| 467 |
df_intitule = df_intitule.iloc[-25:]
|