Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def detect_combined(image):
|
|
54 |
url = "https://api.landing.ai/v1/tools/text-to-object-detection"
|
55 |
files = {"image": open(temp_path, "rb")}
|
56 |
data = {"prompts": ["mixed box"], "model": "countgd"}
|
57 |
-
headers = {"Authorization": "Basic
|
58 |
response = requests.post(url, files=files, data=data, headers=headers)
|
59 |
result = response.json()
|
60 |
|
|
|
54 |
url = "https://api.landing.ai/v1/tools/text-to-object-detection"
|
55 |
files = {"image": open(temp_path, "rb")}
|
56 |
data = {"prompts": ["mixed box"], "model": "countgd"}
|
57 |
+
headers = {"Authorization": "Basic YOUR_API_KEY"} # Replace with actual API key
|
58 |
response = requests.post(url, files=files, data=data, headers=headers)
|
59 |
result = response.json()
|
60 |
|