cyberandy commited on
Commit
4845500
·
1 Parent(s): b644746

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)