Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|