Commit
•
8db3578
1
Parent(s):
7fdbcb9
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,13 @@ import os, io
|
|
3 |
import gradio as gr
|
4 |
# from PIL import Image
|
5 |
|
6 |
-
API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-panoptic"
|
|
|
|
|
|
|
7 |
headers = {"Authorization": "Bearer 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"}
|
8 |
|
|
|
9 |
def image_classifier(inp):
|
10 |
return {'cat': 0.3, 'dog': 0.7}
|
11 |
|
|
|
3 |
import gradio as gr
|
4 |
# from PIL import Image
|
5 |
|
6 |
+
# API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-panoptic"
|
7 |
+
# headers = {"Authorization": "Bearer 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"}
|
8 |
+
|
9 |
+
API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-dc5-panoptic"
|
10 |
headers = {"Authorization": "Bearer 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"}
|
11 |
|
12 |
+
|
13 |
def image_classifier(inp):
|
14 |
return {'cat': 0.3, 'dog': 0.7}
|
15 |
|