ariG23498 HF staff commited on
Commit
f3cbcc0
·
1 Parent(s): df0d9bc

using value in Image

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -20,14 +20,14 @@ 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(src=img1)
24
  with gr.Tab("Image 2"):
25
- image2 = gr.Image(src=img2)
26
  with gr.Tab("Image 3"):
27
- image3 = gr.Image(src=img3)
28
  with gr.Tab("Image 4"):
29
- image4 = gr.Image(src=img4)
30
  with gr.Tab("Image 5"):
31
- image5 = gr.Image(src=img5)
32
 
33
  demo.launch()
 
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()