Commit
·
54fa437
1
Parent(s):
8888815
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,6 @@ API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-p
|
|
8 |
headers = {"Authorization": "Bearer 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"}
|
9 |
|
10 |
|
11 |
-
|
12 |
-
output = query("cats.jpg")
|
13 |
-
|
14 |
-
|
15 |
# Perform image segmentation for multy class output
|
16 |
def query(inputs):
|
17 |
with open(inputs, "rb") as f:
|
|
|
8 |
headers = {"Authorization": "Bearer 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"}
|
9 |
|
10 |
|
|
|
|
|
|
|
|
|
11 |
# Perform image segmentation for multy class output
|
12 |
def query(inputs):
|
13 |
with open(inputs, "rb") as f:
|