Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
57e2032
1
Parent(s):
4ad00b8
refactor: refactor gallery col
Browse files
app.py
CHANGED
@@ -27,37 +27,25 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
|
|
27 |
with gr.Column(
|
28 |
scale=1,
|
29 |
):
|
|
|
30 |
pet_gallery = gr.Gallery(
|
31 |
-
[
|
32 |
-
"medias/partner1.png",
|
33 |
-
"medias/partner2.png",
|
34 |
-
"medias/partner3.png",
|
35 |
-
"medias/partner4.png",
|
36 |
-
]
|
37 |
-
* 2,
|
38 |
label="夥伴",
|
39 |
preview=False,
|
40 |
elem_id="pet_gallery",
|
41 |
columns=30,
|
42 |
height=200,
|
43 |
)
|
44 |
-
pet_description = gr.Markdown("# 夥伴", elem_id="pet_avatar_description")
|
45 |
|
|
|
46 |
badge_gallery = gr.Gallery(
|
47 |
-
[
|
48 |
-
"medias/badge.png",
|
49 |
-
"medias/badge2.png",
|
50 |
-
"medias/badge3.png",
|
51 |
-
"medias/badge4.png",
|
52 |
-
]
|
53 |
-
* 2,
|
54 |
label="徽章",
|
55 |
preview=False,
|
56 |
elem_id="badge_gallery",
|
57 |
columns=30,
|
58 |
height=200,
|
59 |
)
|
60 |
-
badge_description = gr.Markdown("# 徽章", elem_id="badge_avatar_description")
|
61 |
|
62 |
with gr.Column(scale=1, elem_id="player_avatar_container"):
|
63 |
avatar = gr.Gallery(
|
|
|
27 |
with gr.Column(
|
28 |
scale=1,
|
29 |
):
|
30 |
+
pet_description = gr.Markdown("# 夥伴", elem_id="pet_avatar_description")
|
31 |
pet_gallery = gr.Gallery(
|
32 |
+
[],
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
label="夥伴",
|
34 |
preview=False,
|
35 |
elem_id="pet_gallery",
|
36 |
columns=30,
|
37 |
height=200,
|
38 |
)
|
|
|
39 |
|
40 |
+
badge_description = gr.Markdown("# 徽章", elem_id="badge_avatar_description")
|
41 |
badge_gallery = gr.Gallery(
|
42 |
+
[],
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
label="徽章",
|
44 |
preview=False,
|
45 |
elem_id="badge_gallery",
|
46 |
columns=30,
|
47 |
height=200,
|
48 |
)
|
|
|
49 |
|
50 |
with gr.Column(scale=1, elem_id="player_avatar_container"):
|
51 |
avatar = gr.Gallery(
|