Ahsen Khaliq commited on
Commit
ed9398f
1 Parent(s): 8a8a5b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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 = "Detectron 2"
87
- description = "Gradio demo for Detectron 2: A PyTorch-based modular object detection library. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
88
- article = "<p style='text-align: center'><a href='https://ai.facebook.com/blog/-detectron2-a-pytorch-based-modular-object-detection-library-/' target='_blank'>Detectron2: A PyTorch-based modular object detection library</a> | <a href='https://github.com/facebookresearch/detectron2' target='_blank'>Github Repo</a></p>"
 
 
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)