muhammadsalmanalfaridzi commited on
Commit
7397c8b
·
verified ·
1 Parent(s): 56ff081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 COUNTGD_API_KEY"} # Replace with actual API key
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