cyberandy commited on
Commit
d84590e
·
verified ·
1 Parent(s): 7bd5519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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://query-matching.eastus2.inference.ml.azure.com/score"
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": "Bearer " + secret_key
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)