yuragoithf
commited on
Commit
·
d532c55
1
Parent(s):
7a60abd
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ import gradio as gr
|
|
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):
|
|
|
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": f'Bearer {SECRET_TOKEN}'}
|
11 |
+
|
12 |
|
13 |
|
14 |
def image_classifier(inp):
|