Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -213,48 +213,16 @@ Click a dumpling for a little encouragement!
|
|
| 213 |
""")
|
| 214 |
gr.TabbedInterface([college, summer, stress], ["College Information", "Summer Programs", "Stress Tips", ])
|
| 215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
|
|
|
|
| 217 |
|
| 218 |
-
|
|
|
|
|
|
|
| 219 |
|
| 220 |
-
dumpling1 = gr.Image(
|
| 221 |
-
"dumpling1.png",
|
| 222 |
-
show_label=False,
|
| 223 |
-
interactive=True
|
| 224 |
-
)
|
| 225 |
-
|
| 226 |
-
dumpling2 = gr.Image(
|
| 227 |
-
"dumpling2.png",
|
| 228 |
-
show_label=False,
|
| 229 |
-
interactive=True
|
| 230 |
-
)
|
| 231 |
-
|
| 232 |
-
dumpling3 = gr.Image(
|
| 233 |
-
"dumpling3.png",
|
| 234 |
-
show_label=False,
|
| 235 |
-
interactive=True
|
| 236 |
-
)
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
message_box = gr.Textbox(
|
| 240 |
-
label="CASP's Message 💗",
|
| 241 |
-
interactive=False
|
| 242 |
-
)
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
dumpling1.select(
|
| 246 |
-
lucky_dumpling,
|
| 247 |
-
outputs=message_box
|
| 248 |
-
)
|
| 249 |
-
|
| 250 |
-
dumpling2.select(
|
| 251 |
-
lucky_dumpling,
|
| 252 |
-
outputs=message_box
|
| 253 |
-
)
|
| 254 |
-
|
| 255 |
-
dumpling3.select(
|
| 256 |
-
lucky_dumpling,
|
| 257 |
-
outputs=message_box
|
| 258 |
-
)
|
| 259 |
|
| 260 |
demo.launch(debug="True")
|
|
|
|
| 213 |
""")
|
| 214 |
gr.TabbedInterface([college, summer, stress], ["College Information", "Summer Programs", "Stress Tips", ])
|
| 215 |
|
| 216 |
+
with gr.Row():
|
| 217 |
+
dumpling1 = gr.Image("dumpling1.png", interactive=True, show_label=False)
|
| 218 |
+
dumpling2 = gr.Image("dumpling2.png", interactive=True, show_label=False)
|
| 219 |
+
dumpling3 = gr.Image("dumpling3.png", interactive=True, show_label=False)
|
| 220 |
|
| 221 |
+
message_box = gr.Textbox(label="CASP's Message 💗", interactive=False)
|
| 222 |
|
| 223 |
+
dumpling1.select(lucky_dumpling, outputs=message_box)
|
| 224 |
+
dumpling2.select(lucky_dumpling, outputs=message_box)
|
| 225 |
+
dumpling3.select(lucky_dumpling, outputs=message_box)
|
| 226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
|
| 228 |
demo.launch(debug="True")
|