kaupane commited on
Commit
fe818da
·
verified ·
1 Parent(s): ea1e7c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -187,9 +187,9 @@ def generate_random_seed():
187
  return random.randint(0, 2**32 - 1)
188
 
189
  MODEL_SAMPLE_LIMITS = {
190
- "S": {"min":1, "max": 16, "default": 4},
191
- "B": {"min":1, "max": 12, "default": 3},
192
- "L": {"min":1, "max": 4, "default": 1}
193
  }
194
 
195
  def update_sample_slider(dit_size):
@@ -281,8 +281,8 @@ with gr.Blocks(title="DiT Diffusion Model Generator", theme=gr.themes.Soft()) as
281
  with gr.Column(scale=2):
282
  output_gallery = gr.Gallery(
283
  label="Generated Images",
284
- columns=4,
285
- rows=3,
286
  height=550,
287
  object_fit="contain",
288
  allow_preview=True,
 
187
  return random.randint(0, 2**32 - 1)
188
 
189
  MODEL_SAMPLE_LIMITS = {
190
+ "S": {"min":1, "max": 18, "default": 6},
191
+ "B": {"min":1, "max": 12, "default": 4},
192
+ "L": {"min":1, "max": 6, "default": 2}
193
  }
194
 
195
  def update_sample_slider(dit_size):
 
281
  with gr.Column(scale=2):
282
  output_gallery = gr.Gallery(
283
  label="Generated Images",
284
+ columns=3,
285
+ rows=2,
286
  height=550,
287
  object_fit="contain",
288
  allow_preview=True,