Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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":
|
191 |
-
"B": {"min":1, "max":
|
192 |
-
"L": {"min":1, "max":
|
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=
|
285 |
-
rows=
|
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": 24, "default": 6},
|
191 |
+
"B": {"min":1, "max": 16, "default": 4},
|
192 |
+
"L": {"min":1, "max": 8, "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=6,
|
285 |
+
rows=4,
|
286 |
height=550,
|
287 |
object_fit="contain",
|
288 |
allow_preview=True,
|