Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ with gr.Blocks(theme='Jonny001/PinkWorld-Theme') as demo:
|
|
| 65 |
check = gr.Checkbox(label="Go")
|
| 66 |
with gr.Column(variant="panel", scale=2):
|
| 67 |
img = gr.Image(
|
| 68 |
-
"https://
|
| 69 |
).style(height=320)
|
| 70 |
with gr.Row():
|
| 71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
|
@@ -75,7 +75,7 @@ with gr.Blocks(theme='Jonny001/PinkWorld-Theme') as demo:
|
|
| 75 |
|
| 76 |
def go(*args):
|
| 77 |
time.sleep(3)
|
| 78 |
-
return "https://
|
| 79 |
|
| 80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
| 81 |
|
|
@@ -105,16 +105,16 @@ with gr.Blocks(theme='Jonny001/PinkWorld-Theme') as demo:
|
|
| 105 |
gr.Gallery(
|
| 106 |
[
|
| 107 |
(
|
| 108 |
-
"https://
|
| 109 |
-
"
|
| 110 |
),
|
| 111 |
(
|
| 112 |
-
"https://
|
| 113 |
-
"
|
| 114 |
),
|
| 115 |
(
|
| 116 |
-
"https://
|
| 117 |
-
"
|
| 118 |
),
|
| 119 |
]
|
| 120 |
).style(height="200px", grid=2)
|
|
|
|
| 65 |
check = gr.Checkbox(label="Go")
|
| 66 |
with gr.Column(variant="panel", scale=2):
|
| 67 |
img = gr.Image(
|
| 68 |
+
"https://images2.imgbox.com/14/f3/XMkbEZZ4_o.jpg", label="Image"
|
| 69 |
).style(height=320)
|
| 70 |
with gr.Row():
|
| 71 |
go_btn = gr.Button("Go", label="Primary Button", variant="primary")
|
|
|
|
| 75 |
|
| 76 |
def go(*args):
|
| 77 |
time.sleep(3)
|
| 78 |
+
return "https://images2.imgbox.com/14/f3/XMkbEZZ4_o.jpg"
|
| 79 |
|
| 80 |
go_btn.click(go, [radio, drop, drop_2, check, name], img, api_name="go")
|
| 81 |
|
|
|
|
| 105 |
gr.Gallery(
|
| 106 |
[
|
| 107 |
(
|
| 108 |
+
"https://images2.imgbox.com/7b/a4/oDFq9j1O_o.jpg",
|
| 109 |
+
"Image 01",
|
| 110 |
),
|
| 111 |
(
|
| 112 |
+
"https://images2.imgbox.com/ad/66/pDzGN2Kw_o.jpg",
|
| 113 |
+
"Image 02",
|
| 114 |
),
|
| 115 |
(
|
| 116 |
+
"https://images2.imgbox.com/bc/2d/SCY9ZNHV_o.jpg",
|
| 117 |
+
"Image 03",
|
| 118 |
),
|
| 119 |
]
|
| 120 |
).style(height="200px", grid=2)
|