Update app.py
Browse files
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": ["
|
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()
|