Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -104,6 +104,10 @@ css = """
|
|
104 |
footer {
|
105 |
visibility: hidden;
|
106 |
}
|
|
|
|
|
|
|
|
|
107 |
"""
|
108 |
|
109 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
@@ -123,7 +127,7 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
|
123 |
container=False,
|
124 |
)
|
125 |
run_button = gr.Button("Run", scale=0)
|
126 |
-
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
|
127 |
with gr.Accordion("Advanced options", open=False):
|
128 |
with gr.Row():
|
129 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
@@ -202,4 +206,4 @@ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
|
202 |
)
|
203 |
|
204 |
if __name__ == "__main__":
|
205 |
-
demo.queue(max_size=20).launch()
|
|
|
104 |
footer {
|
105 |
visibility: hidden;
|
106 |
}
|
107 |
+
#result-gallery {
|
108 |
+
height: 600px; /* ์ํ๋ ๋์ด๋ก ์ค์ */
|
109 |
+
overflow-y: auto;
|
110 |
+
}
|
111 |
"""
|
112 |
|
113 |
with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
|
|
|
127 |
container=False,
|
128 |
)
|
129 |
run_button = gr.Button("Run", scale=0)
|
130 |
+
result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False, elem_id="result-gallery")
|
131 |
with gr.Accordion("Advanced options", open=False):
|
132 |
with gr.Row():
|
133 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
|
|
206 |
)
|
207 |
|
208 |
if __name__ == "__main__":
|
209 |
+
demo.queue(max_size=20).launch()
|