muhammadsalmanalfaridzi commited on
Commit
4380403
·
verified ·
1 Parent(s): 3a71dad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def detect_combined(image):
71
  # ===== CountGD Detection (Competitor products) =====
72
  url = "https://api.landing.ai/v1/tools/text-to-object-detection"
73
  files = {"image": open(temp_path, "rb")}
74
- data = {"prompts": ["bottle"], "model": "countgd"}
75
  headers = {"Authorization": f"Basic {COUNTGD_API_KEY}"}
76
  response = requests.post(url, files=files, data=data, headers=headers)
77
  result = response.json()
 
71
  # ===== CountGD Detection (Competitor products) =====
72
  url = "https://api.landing.ai/v1/tools/text-to-object-detection"
73
  files = {"image": open(temp_path, "rb")}
74
+ data = {"prompts": ["mixed box"], "model": "countgd"}
75
  headers = {"Authorization": f"Basic {COUNTGD_API_KEY}"}
76
  response = requests.post(url, files=files, data=data, headers=headers)
77
  result = response.json()