Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def create_solutions(image_urls, names):
|
|
| 92 |
def send_results_to_api(data, result_url):
|
| 93 |
headers = {"Content-Type": "application/json"}
|
| 94 |
try:
|
| 95 |
-
response = requests.
|
| 96 |
response.raise_for_status()
|
| 97 |
return response.json()
|
| 98 |
except requests.exceptions.RequestException as e:
|
|
|
|
| 92 |
def send_results_to_api(data, result_url):
|
| 93 |
headers = {"Content-Type": "application/json"}
|
| 94 |
try:
|
| 95 |
+
response = requests.post(result_url, json=data, headers=headers)
|
| 96 |
response.raise_for_status()
|
| 97 |
return response.json()
|
| 98 |
except requests.exceptions.RequestException as e:
|