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