Commit
·
94d7bd9
1
Parent(s):
9b9f35d
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,9 @@ import gradio as gr
|
|
| 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 =
|
| 11 |
|
| 12 |
|
| 13 |
def image_classifier(inp):
|
|
|
|
| 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):
|