Ahsen Khaliq
commited on
Commit
·
fd97194
1
Parent(s):
69a855e
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ imagenet_id_to_classname = {}
|
|
34 |
for k, v in imagenet_classnames.items():
|
35 |
imagenet_id_to_classname[k] = v[1]
|
36 |
|
37 |
-
os.system("wget
|
38 |
|
39 |
def inference(img):
|
40 |
image = img
|
@@ -68,4 +68,4 @@ description = "Gradio demo for Revisiting Weakly Supervised Pre-Training of Visu
|
|
68 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2201.08371' target='_blank'>Revisiting Weakly Supervised Pre-Training of Visual Perception Models</a> | <a href='https://github.com/facebookresearch/SWAG' target='_blank'>Github Repo</a></p>"
|
69 |
|
70 |
|
71 |
-
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=[['
|
|
|
34 |
for k, v in imagenet_classnames.items():
|
35 |
imagenet_id_to_classname[k] = v[1]
|
36 |
|
37 |
+
os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/13-11-02-olb-by-RalfR-03.jpg/800px-13-11-02-olb-by-RalfR-03.jpg -O library.jpg")
|
38 |
|
39 |
def inference(img):
|
40 |
image = img
|
|
|
68 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2201.08371' target='_blank'>Revisiting Weakly Supervised Pre-Training of Visual Perception Models</a> | <a href='https://github.com/facebookresearch/SWAG' target='_blank'>Github Repo</a></p>"
|
69 |
|
70 |
|
71 |
+
gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=[['library.jpg']]).launch(enable_queue=True,cache_examples=True)
|