Spaces:
Sleeping
Sleeping
Commit
·
72c3254
1
Parent(s):
047a580
Updated app
Browse files
app.py
CHANGED
@@ -111,6 +111,7 @@ def detect(image):
|
|
111 |
return output_pil_img, output_pil_img_attn
|
112 |
|
113 |
with gr.Blocks() as demo:
|
|
|
114 |
gr.Markdown("# Object detection with DETR")
|
115 |
gr.Markdown(
|
116 |
"""
|
@@ -118,6 +119,7 @@ with gr.Blocks() as demo:
|
|
118 |
You can load an image and see the predictions for the objects detected along with the attention weights.
|
119 |
"""
|
120 |
)
|
|
|
121 |
|
122 |
gr.Interface(
|
123 |
fn=detect,
|
|
|
111 |
return output_pil_img, output_pil_img_attn
|
112 |
|
113 |
with gr.Blocks() as demo:
|
114 |
+
'''
|
115 |
gr.Markdown("# Object detection with DETR")
|
116 |
gr.Markdown(
|
117 |
"""
|
|
|
119 |
You can load an image and see the predictions for the objects detected along with the attention weights.
|
120 |
"""
|
121 |
)
|
122 |
+
'''
|
123 |
|
124 |
gr.Interface(
|
125 |
fn=detect,
|