fantaxy commited on
Commit
b3c7b3a
โ€ข
1 Parent(s): 9589e41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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()