Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import numpy as np
|
|
2 |
import gradio as gr
|
3 |
|
4 |
urls = [
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
]
|
11 |
|
12 |
# Add your image files here
|
@@ -19,15 +19,15 @@ img5 = urls[4]
|
|
19 |
with gr.Blocks() as demo:
|
20 |
gr.Markdown("Select a tab to display a corresponding image.")
|
21 |
with gr.Tabs() as tabs:
|
22 |
-
with gr.Tab("
|
23 |
image1 = gr.Image(value=img1)
|
24 |
-
with gr.Tab("
|
25 |
image2 = gr.Image(value=img2)
|
26 |
-
with gr.Tab("
|
27 |
image3 = gr.Image(value=img3)
|
28 |
-
with gr.Tab("
|
29 |
image4 = gr.Image(value=img4)
|
30 |
-
with gr.Tab("
|
31 |
image5 = gr.Image(value=img5)
|
32 |
|
33 |
demo.launch()
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
urls = [
|
5 |
+
"./assets/DETR-big-picture.png",
|
6 |
+
"./assets/DETR-CNN-backbone.png",
|
7 |
+
"./assets/DETR-encoder.png",
|
8 |
+
"./assets/DETR-decoder.png",
|
9 |
+
"./assets/DETR-prediction-heads.png",
|
10 |
]
|
11 |
|
12 |
# Add your image files here
|
|
|
19 |
with gr.Blocks() as demo:
|
20 |
gr.Markdown("Select a tab to display a corresponding image.")
|
21 |
with gr.Tabs() as tabs:
|
22 |
+
with gr.Tab("DETR Architecture"):
|
23 |
image1 = gr.Image(value=img1)
|
24 |
+
with gr.Tab("CNN Backbone"):
|
25 |
image2 = gr.Image(value=img2)
|
26 |
+
with gr.Tab("Encoder"):
|
27 |
image3 = gr.Image(value=img3)
|
28 |
+
with gr.Tab("Decoder"):
|
29 |
image4 = gr.Image(value=img4)
|
30 |
+
with gr.Tab("FNN Prediction Heads"):
|
31 |
image5 = gr.Image(value=img5)
|
32 |
|
33 |
demo.launch()
|