Update main.py
Browse files
main.py
CHANGED
@@ -764,12 +764,12 @@ async def creation_liste_code_Rome_et_emplois(competence):
|
|
764 |
|
765 |
results_df = pd.DataFrame({'codeRome': codeRome,'competence': competence, 'metier': metier})
|
766 |
arrayresults = results_df.values.tolist()
|
767 |
-
displayresults = '
|
768 |
for j in range(0, len(arrayresults)):
|
769 |
-
displayresults += '
|
770 |
|
771 |
-
|
772 |
-
await cl.Message(author="Datapcc : 🌐🌐🌐",content="
|
773 |
|
774 |
results_df = results_df.drop_duplicates(subset=["codeRome"])
|
775 |
results_df = results_df.head(5)
|
|
|
764 |
|
765 |
results_df = pd.DataFrame({'codeRome': codeRome,'competence': competence, 'metier': metier})
|
766 |
arrayresults = results_df.values.tolist()
|
767 |
+
displayresults = '| Code Rome | Compétence | Métier |\n| -------- | ------- | ------- |'
|
768 |
for j in range(0, len(arrayresults)):
|
769 |
+
displayresults += '\n| ' + arrayresults[j][0] + ' | ' + arrayresults[j][1] + ' | ' + arrayresults[j][2] + ' |'
|
770 |
|
771 |
+
print(arrayresults[0][0] + arrayresults[0][1] + arrayresults[0][2])
|
772 |
+
await cl.Message(author="Datapcc : 🌐🌐🌐",content="Voici le résultat de la recherche sémantique sur le catalogue Rome :\n" + displayresults).send()
|
773 |
|
774 |
results_df = results_df.drop_duplicates(subset=["codeRome"])
|
775 |
results_df = results_df.head(5)
|