Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -428,8 +428,6 @@ def localisation():
|
|
| 428 |
|
| 429 |
@cl.action_callback("datavizEmploi")
|
| 430 |
async def on_action(action):
|
| 431 |
-
os.environ['POLE_EMPLOI_CLIENT_ID'] = 'PAR_datalabapc_54c735e1b592af9d016cf0e45f8973082303609fc997f0821a9b308c07995251'
|
| 432 |
-
os.environ['POLE_EMPLOI_CLIENT_SECRET'] = 'b968556f8b4bf2c42af42498304bab0d76edcef23ed4723bbd621ae317a6657e'
|
| 433 |
client = Api(client_id=os.environ['POLE_EMPLOI_CLIENT_ID'],
|
| 434 |
client_secret=os.environ['POLE_EMPLOI_CLIENT_SECRET'])
|
| 435 |
todayDate = datetime.datetime.today()
|
|
@@ -777,7 +775,6 @@ async def vectorOFDatabase_connexion():
|
|
| 777 |
|
| 778 |
@cl.step(name="récupération du secteur professionnel", type="tool", show_input=True, language="python")
|
| 779 |
async def vectorDatabase_connexion():
|
| 780 |
-
os.environ['PINECONE_API_KEYROME'] = 'b95aa1ca-1e51-4f30-a766-bb664ebb528b'
|
| 781 |
pc = Pinecone(api_key=os.environ['PINECONE_API_KEYROME'])
|
| 782 |
index_name = "all-skills"
|
| 783 |
index = pc.Index(index_name)
|
|
@@ -785,8 +782,6 @@ async def vectorDatabase_connexion():
|
|
| 785 |
|
| 786 |
@cl.step(name="récupération des emplois de France Travail", type="tool", show_input=True, language="python")
|
| 787 |
async def FranceTravail_API_connexion(romeListArray):
|
| 788 |
-
os.environ['POLE_EMPLOI_CLIENT_ID'] = 'PAR_datalabapc_54c735e1b592af9d016cf0e45f8973082303609fc997f0821a9b308c07995251'
|
| 789 |
-
os.environ['POLE_EMPLOI_CLIENT_SECRET'] = 'b968556f8b4bf2c42af42498304bab0d76edcef23ed4723bbd621ae317a6657e'
|
| 790 |
client = Api(client_id=os.environ['POLE_EMPLOI_CLIENT_ID'],
|
| 791 |
client_secret=os.environ['POLE_EMPLOI_CLIENT_SECRET'])
|
| 792 |
todayDate = datetime.datetime.today()
|
|
|
|
| 428 |
|
| 429 |
@cl.action_callback("datavizEmploi")
|
| 430 |
async def on_action(action):
|
|
|
|
|
|
|
| 431 |
client = Api(client_id=os.environ['POLE_EMPLOI_CLIENT_ID'],
|
| 432 |
client_secret=os.environ['POLE_EMPLOI_CLIENT_SECRET'])
|
| 433 |
todayDate = datetime.datetime.today()
|
|
|
|
| 775 |
|
| 776 |
@cl.step(name="récupération du secteur professionnel", type="tool", show_input=True, language="python")
|
| 777 |
async def vectorDatabase_connexion():
|
|
|
|
| 778 |
pc = Pinecone(api_key=os.environ['PINECONE_API_KEYROME'])
|
| 779 |
index_name = "all-skills"
|
| 780 |
index = pc.Index(index_name)
|
|
|
|
| 782 |
|
| 783 |
@cl.step(name="récupération des emplois de France Travail", type="tool", show_input=True, language="python")
|
| 784 |
async def FranceTravail_API_connexion(romeListArray):
|
|
|
|
|
|
|
| 785 |
client = Api(client_id=os.environ['POLE_EMPLOI_CLIENT_ID'],
|
| 786 |
client_secret=os.environ['POLE_EMPLOI_CLIENT_SECRET'])
|
| 787 |
todayDate = datetime.datetime.today()
|