Spaces:
Running
on
L4
Running
on
L4
Commit
·
6f66eec
1
Parent(s):
489896a
fix docs
Browse files
app.py
CHANGED
|
@@ -316,13 +316,13 @@ with open("image.jpg", "rb") as f:
|
|
| 316 |
response = requests.post(
|
| 317 |
"https://your-username-sam3-api.hf.space/api/sam2_compatible",
|
| 318 |
json={
|
| 319 |
-
"data":
|
| 320 |
"inputs": {
|
| 321 |
"image": image_b64,
|
| 322 |
"text_prompts": ["kitten", "toy"],
|
| 323 |
"confidence_threshold": 0.5
|
| 324 |
}
|
| 325 |
-
}
|
| 326 |
}
|
| 327 |
)
|
| 328 |
|
|
@@ -330,13 +330,13 @@ response = requests.post(
|
|
| 330 |
response = requests.post(
|
| 331 |
"https://your-username-sam3-api.hf.space/api/sam2_compatible",
|
| 332 |
json={
|
| 333 |
-
"data":
|
| 334 |
"inputs": {
|
| 335 |
"image": image_b64,
|
| 336 |
"boxes": [[100, 100, 200, 200]],
|
| 337 |
"confidence_threshold": 0.5
|
| 338 |
}
|
| 339 |
-
}
|
| 340 |
}
|
| 341 |
)
|
| 342 |
|
|
|
|
| 316 |
response = requests.post(
|
| 317 |
"https://your-username-sam3-api.hf.space/api/sam2_compatible",
|
| 318 |
json={
|
| 319 |
+
"data": {
|
| 320 |
"inputs": {
|
| 321 |
"image": image_b64,
|
| 322 |
"text_prompts": ["kitten", "toy"],
|
| 323 |
"confidence_threshold": 0.5
|
| 324 |
}
|
| 325 |
+
}
|
| 326 |
}
|
| 327 |
)
|
| 328 |
|
|
|
|
| 330 |
response = requests.post(
|
| 331 |
"https://your-username-sam3-api.hf.space/api/sam2_compatible",
|
| 332 |
json={
|
| 333 |
+
"data": {
|
| 334 |
"inputs": {
|
| 335 |
"image": image_b64,
|
| 336 |
"boxes": [[100, 100, 200, 200]],
|
| 337 |
"confidence_threshold": 0.5
|
| 338 |
}
|
| 339 |
+
}
|
| 340 |
}
|
| 341 |
)
|
| 342 |
|