Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -215,18 +215,28 @@ Click a dumpling for a little encouragement!
|
|
| 215 |
|
| 216 |
|
| 217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
with gr.Row():
|
| 219 |
|
| 220 |
-
dumpling1 = gr.
|
| 221 |
-
|
|
|
|
|
|
|
| 222 |
)
|
| 223 |
|
| 224 |
-
dumpling2 = gr.
|
| 225 |
-
|
|
|
|
|
|
|
| 226 |
)
|
| 227 |
|
| 228 |
-
dumpling3 = gr.
|
| 229 |
-
|
|
|
|
|
|
|
| 230 |
)
|
| 231 |
|
| 232 |
|
|
@@ -235,17 +245,18 @@ message_box = gr.Textbox(
|
|
| 235 |
interactive=False
|
| 236 |
)
|
| 237 |
|
| 238 |
-
|
|
|
|
| 239 |
lucky_dumpling,
|
| 240 |
outputs=message_box
|
| 241 |
)
|
| 242 |
|
| 243 |
-
dumpling2.
|
| 244 |
lucky_dumpling,
|
| 245 |
outputs=message_box
|
| 246 |
)
|
| 247 |
|
| 248 |
-
dumpling3.
|
| 249 |
lucky_dumpling,
|
| 250 |
outputs=message_box
|
| 251 |
)
|
|
|
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
+
|
| 219 |
+
)
|
| 220 |
+
|
| 221 |
+
|
| 222 |
with gr.Row():
|
| 223 |
|
| 224 |
+
dumpling1 = gr.Image(
|
| 225 |
+
"dumpling1.png",
|
| 226 |
+
show_label=False,
|
| 227 |
+
interactive=True
|
| 228 |
)
|
| 229 |
|
| 230 |
+
dumpling2 = gr.Image(
|
| 231 |
+
"dumpling2.png",
|
| 232 |
+
show_label=False,
|
| 233 |
+
interactive=True
|
| 234 |
)
|
| 235 |
|
| 236 |
+
dumpling3 = gr.Image(
|
| 237 |
+
"dumpling3.png",
|
| 238 |
+
show_label=False,
|
| 239 |
+
interactive=True
|
| 240 |
)
|
| 241 |
|
| 242 |
|
|
|
|
| 245 |
interactive=False
|
| 246 |
)
|
| 247 |
|
| 248 |
+
|
| 249 |
+
dumpling1.select(
|
| 250 |
lucky_dumpling,
|
| 251 |
outputs=message_box
|
| 252 |
)
|
| 253 |
|
| 254 |
+
dumpling2.select(
|
| 255 |
lucky_dumpling,
|
| 256 |
outputs=message_box
|
| 257 |
)
|
| 258 |
|
| 259 |
+
dumpling3.select(
|
| 260 |
lucky_dumpling,
|
| 261 |
outputs=message_box
|
| 262 |
)
|