ariG23498 HF staff commited on
Commit
4fd1232
·
1 Parent(s): 8ca70e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -2,11 +2,11 @@ import numpy as np
2
  import gradio as gr
3
 
4
  urls = [
5
- "https://via.placeholder.com/150/1",
6
- "https://via.placeholder.com/150/2",
7
- "https://via.placeholder.com/150/3",
8
- "https://via.placeholder.com/150/4",
9
- "https://via.placeholder.com/150/5",
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("Image 1"):
23
  image1 = gr.Image(value=img1)
24
- with gr.Tab("Image 2"):
25
  image2 = gr.Image(value=img2)
26
- with gr.Tab("Image 3"):
27
  image3 = gr.Image(value=img3)
28
- with gr.Tab("Image 4"):
29
  image4 = gr.Image(value=img4)
30
- with gr.Tab("Image 5"):
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()