Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ secret_key = st.secrets["secret_key"]
|
|
5 |
wl_key = st.secrets["wl_key"]
|
6 |
|
7 |
def call_api(url, keyword, wl_key, description_narrative):
|
8 |
-
api_url = "https://
|
9 |
|
10 |
payload = {
|
11 |
"url": url,
|
@@ -18,7 +18,7 @@ def call_api(url, keyword, wl_key, description_narrative):
|
|
18 |
headers = {
|
19 |
"Content-Type": "application/json",
|
20 |
"User-Agent": "insomnia/8.2.0",
|
21 |
-
"Authorization": "
|
22 |
}
|
23 |
|
24 |
response = requests.request("POST", api_url, json=payload, headers=headers)
|
|
|
5 |
wl_key = st.secrets["wl_key"]
|
6 |
|
7 |
def call_api(url, keyword, wl_key, description_narrative):
|
8 |
+
api_url = "https://api.wordlift.io/quality-rating/score"
|
9 |
|
10 |
payload = {
|
11 |
"url": url,
|
|
|
18 |
headers = {
|
19 |
"Content-Type": "application/json",
|
20 |
"User-Agent": "insomnia/8.2.0",
|
21 |
+
"Authorization": "Key " + wl_key
|
22 |
}
|
23 |
|
24 |
response = requests.request("POST", api_url, json=payload, headers=headers)
|