hertogateis commited on
Commit
afc42e6
·
verified ·
1 Parent(s): 38d93ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -23,9 +23,12 @@ headers = {
23
  "Authorization": f"Bearer {API_KEY}",
24
  "Content-Type": "application/json",
25
  }
 
 
 
26
 
27
  # Make the API request
28
- response = requests.post(API_URL, headers=headers, data=json.dumps(payload))
29
 
30
  # Check the response
31
  if response.status_code == 200:
 
23
  "Authorization": f"Bearer {API_KEY}",
24
  "Content-Type": "application/json",
25
  }
26
+ response = requests.get(API_URL, headers=headers)
27
+ print(response.status_code, response.json())
28
+
29
 
30
  # Make the API request
31
+ #response = requests.post(API_URL, headers=headers, data=json.dumps(payload))
32
 
33
  # Check the response
34
  if response.status_code == 200: