Spaces:
Sleeping
Sleeping
Update app.py
Browse files22 unmodified lines23242526272829303122 unmodified lines"Authorization": f"Bearer {API_KEY}","Content-Type": "application/json",}# Make the API requestresponse = requests.post(API_URL, headers=headers, data=json.dumps(payload))# Check the responseif response.status_code == 200:22 unmodified lines23242526272829303132333422 unmodified lines"Authorization": f"Bearer {API_KEY}","Content-Type": "application/json",}response = requests.get(API_URL, headers=headers)print(response.status_code, response.json())# Make the API request#response = requests.post(API_URL, headers=headers, data=json.dumps(payload))# Check the responseif response.status_code == 200:
app.py+4-1