Update main.py
Browse files
main.py
CHANGED
@@ -362,7 +362,7 @@ def rename(orig_author: str):
|
|
362 |
rename_dict = {"ConversationalRetrievalChain": "💬 Assistant conversationnel", "Retriever": "Agent conversationnel", "StuffDocumentsChain": "Chaîne de documents", "LLMChain": "Agent", "HuggingFaceEndpoint": "Mistral AI 🤖"}
|
363 |
return rename_dict.get(orig_author, orig_author)
|
364 |
|
365 |
-
@cl.action_callback("
|
366 |
async def on_action(action):
|
367 |
romeListArray = ast.literal_eval(action.value)
|
368 |
stringLsitOfEntreprise = await creation_liste_entreprises(arrayOfSecteur(romeListArray))
|
|
|
362 |
rename_dict = {"ConversationalRetrievalChain": "💬 Assistant conversationnel", "Retriever": "Agent conversationnel", "StuffDocumentsChain": "Chaîne de documents", "LLMChain": "Agent", "HuggingFaceEndpoint": "Mistral AI 🤖"}
|
363 |
return rename_dict.get(orig_author, orig_author)
|
364 |
|
365 |
+
@cl.action_callback("listOfEntreprises")
|
366 |
async def on_action(action):
|
367 |
romeListArray = ast.literal_eval(action.value)
|
368 |
stringLsitOfEntreprise = await creation_liste_entreprises(arrayOfSecteur(romeListArray))
|