Spaces:
Sleeping
Sleeping
Update app.py
Browse files332 unmodified lines333334335336336337338339332 unmodified lines try: # 3. Perform the POST request # Using 'json=' automatically sets Content-Type to application/json response = requests.get(url, json=data_to_send) response = requests.post(url, json=data_to_send) # 4. Handle the response response.raise_for_status() # Check for HTTP errors (4xx or 5xx)app.py+1-1