Spaces:
Sleeping
Sleeping
cdupland
commited on
Commit
•
fe870ca
1
Parent(s):
d9e40cd
Refactor API endpoint for prompts to use /opendata instead of /public
Browse files- data_manager_bziiit.py +1 -1
data_manager_bziiit.py
CHANGED
@@ -36,7 +36,7 @@ def get_engaged_brands():
|
|
36 |
|
37 |
# Fonction de récupération des prompts
|
38 |
def get_prompts():
|
39 |
-
url = f"{BASE_URL}/
|
40 |
response = requests.get(url)
|
41 |
if response.status_code == 200:
|
42 |
return response.json()["response"]
|
|
|
36 |
|
37 |
# Fonction de récupération des prompts
|
38 |
def get_prompts():
|
39 |
+
url = f"{BASE_URL}/opendata/prompts"
|
40 |
response = requests.get(url)
|
41 |
if response.status_code == 200:
|
42 |
return response.json()["response"]
|