nolenfelten commited on
Commit
3aac09f
·
verified ·
1 Parent(s): 17a57c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=encoded_image, headers={"Content-Type": "application/x-www-form-urlencoded"})
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))