Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
ed9398f
1
Parent(s):
8a8a5b4
Update app.py
Browse files
app.py
CHANGED
@@ -83,12 +83,14 @@ def inference(img):
|
|
83 |
|
84 |
return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
|
85 |
|
86 |
-
title = "
|
87 |
-
|
88 |
-
|
|
|
|
|
89 |
|
90 |
examples = [['desk.jpg']]
|
91 |
gr.Interface(inference, inputs=gr.inputs.Image(type="filepath"), outputs=gr.outputs.Image(type="pil"),enable_queue=True, title=title,
|
92 |
description=description,
|
93 |
article=article,
|
94 |
-
examples=examples).launch()
|
|
|
83 |
|
84 |
return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
|
85 |
|
86 |
+
title = "Detic"
|
87 |
+
|
88 |
+
description = "Gradio demo for Detic: Detecting Twenty-thousand Classes using Image-level Supervision. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
89 |
+
|
90 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2201.02605' target='_blank'>Detecting Twenty-thousand Classes using Image-level Supervision</a> | <a href='https://github.com/facebookresearch/Detic' target='_blank'>Github Repo</a></p>"
|
91 |
|
92 |
examples = [['desk.jpg']]
|
93 |
gr.Interface(inference, inputs=gr.inputs.Image(type="filepath"), outputs=gr.outputs.Image(type="pil"),enable_queue=True, title=title,
|
94 |
description=description,
|
95 |
article=article,
|
96 |
+
examples=examples).launch(enable_queue=True)
|