Clement Vachet commited on
Commit
b062768
·
1 Parent(s): bc42f94

Remove model param from request call

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def detect(image_path, model_id, threshold):
59
  'model': model_name
60
  }
61
 
62
- # response = requests.post(API_endpoint, json=payload, headers=headers)
63
- response = requests.post(API_endpoint, json=payload, headers=headers, params=params)
64
 
65
  if response.status_code == 200:
66
  # Process the response
 
59
  'model': model_name
60
  }
61
 
62
+ response = requests.post(API_endpoint, json=payload, headers=headers)
63
+ # response = requests.post(API_endpoint, json=payload, headers=headers, params=params)
64
 
65
  if response.status_code == 200:
66
  # Process the response