Spaces:
Running
Running
AntaresGuo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ with gr.Blocks(css=css) as demo:
|
|
85 |
""")
|
86 |
example_gallery_char = gr.Gallery(label="style_type_char", show_label=True,
|
87 |
elem_id="example_gallery_char",
|
88 |
-
value=list(style_example.keys()), columns=5,height=
|
89 |
)
|
90 |
# vis result gallery
|
91 |
gr.HTML("""
|
@@ -94,7 +94,7 @@ with gr.Blocks(css=css) as demo:
|
|
94 |
final_gallery_char = gr.Gallery(
|
95 |
label="最终生成图",
|
96 |
show_label=False,
|
97 |
-
elem_classes="final_gallery_char", columns=[4], rows=[2]
|
98 |
)
|
99 |
|
100 |
submit_char.add([final_gallery_char])
|
@@ -133,8 +133,9 @@ with gr.Blocks(css=css) as demo:
|
|
133 |
example_gallery_word = gr.Gallery(label="style_type_word", show_label=True,
|
134 |
elem_id="example_gallery_word",
|
135 |
value=list(style_example_word.keys()), columns=5,
|
136 |
-
allow_preview=True, selected_index=0,
|
137 |
-
preview=True,
|
|
|
138 |
)
|
139 |
# vis result gallery
|
140 |
gr.HTML("""
|
@@ -143,9 +144,10 @@ with gr.Blocks(css=css) as demo:
|
|
143 |
final_gallery_word = gr.Gallery(
|
144 |
label="最终生成图",
|
145 |
show_label=False,
|
146 |
-
elem_classes="final_gallery", columns=
|
147 |
-
allow_preview=True, selected_index=0,
|
148 |
-
preview=True,
|
|
|
149 |
)
|
150 |
|
151 |
submit_word.add([final_gallery_word])
|
|
|
85 |
""")
|
86 |
example_gallery_char = gr.Gallery(label="style_type_char", show_label=True,
|
87 |
elem_id="example_gallery_char",
|
88 |
+
value=list(style_example.keys()), columns=5,height=384
|
89 |
)
|
90 |
# vis result gallery
|
91 |
gr.HTML("""
|
|
|
94 |
final_gallery_char = gr.Gallery(
|
95 |
label="最终生成图",
|
96 |
show_label=False,
|
97 |
+
elem_classes="final_gallery_char", columns=[4], rows=[2],height=512
|
98 |
)
|
99 |
|
100 |
submit_char.add([final_gallery_char])
|
|
|
133 |
example_gallery_word = gr.Gallery(label="style_type_word", show_label=True,
|
134 |
elem_id="example_gallery_word",
|
135 |
value=list(style_example_word.keys()), columns=5,
|
136 |
+
#allow_preview=True, selected_index=0,
|
137 |
+
#preview=True,
|
138 |
+
height=384,object_fit="scale-down"
|
139 |
)
|
140 |
# vis result gallery
|
141 |
gr.HTML("""
|
|
|
144 |
final_gallery_word = gr.Gallery(
|
145 |
label="最终生成图",
|
146 |
show_label=False,
|
147 |
+
elem_classes="final_gallery", columns=2,
|
148 |
+
#allow_preview=True, selected_index=0,
|
149 |
+
#preview=True,
|
150 |
+
height=512,object_fit="scale-down"
|
151 |
)
|
152 |
|
153 |
submit_word.add([final_gallery_word])
|