Spaces:
Running
Running
using value in Image
Browse files
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(
|
24 |
with gr.Tab("Image 2"):
|
25 |
-
image2 = gr.Image(
|
26 |
with gr.Tab("Image 3"):
|
27 |
-
image3 = gr.Image(
|
28 |
with gr.Tab("Image 4"):
|
29 |
-
image4 = gr.Image(
|
30 |
with gr.Tab("Image 5"):
|
31 |
-
image5 = gr.Image(
|
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()
|