Commit
·
7a60abd
1
Parent(s):
94d7bd9
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,10 @@ 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 |
SECRET_TOKEN = os.getenv("SECRET_TOKEN")
|
10 |
API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-dc5-panoptic"
|
11 |
-
headers = SECRET_TOKEN
|
12 |
|
13 |
|
14 |
def image_classifier(inp):
|
|
|
4 |
# from PIL import Image
|
5 |
|
6 |
# API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-panoptic"
|
|
|
7 |
|
8 |
SECRET_TOKEN = os.getenv("SECRET_TOKEN")
|
9 |
API_URL = "https://api-inference.huggingface.co/models/facebook/detr-resnet-50-dc5-panoptic"
|
10 |
+
headers = {"Authorization": SECRET_TOKEN}
|
11 |
|
12 |
|
13 |
def image_classifier(inp):
|