Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def call_api(url, keyword, wl_key, description_narrative, secret_key):
|
|
14 |
headers = {
|
15 |
"Content-Type": "application/json",
|
16 |
"User-Agent": "insomnia/8.2.0",
|
17 |
-
"Authorization": "Bearer " + secret_key
|
18 |
}
|
19 |
|
20 |
response = requests.request("POST", api_url, json=payload, headers=headers)
|
|
|
14 |
headers = {
|
15 |
"Content-Type": "application/json",
|
16 |
"User-Agent": "insomnia/8.2.0",
|
17 |
+
"Authorization": "Bearer " + st.secrets["secret_key"]
|
18 |
}
|
19 |
|
20 |
response = requests.request("POST", api_url, json=payload, headers=headers)
|