Update app.py
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ def infer(image, model, version, api_key, confidence=0.45, overlap=0.45, format=
|
|
314 |
|
315 |
image_data = resize_image(image)
|
316 |
|
317 |
-
response = requests.post(base_url, data=
|
318 |
|
319 |
if format == "json":
|
320 |
print(json.dumps(response.json(), indent=4))
|
|
|
314 |
|
315 |
image_data = resize_image(image)
|
316 |
|
317 |
+
response = requests.post(base_url, data=image_data, headers={"Content-Type": "application/x-www-form-urlencoded"})
|
318 |
|
319 |
if format == "json":
|
320 |
print(json.dumps(response.json(), indent=4))
|