Spaces:
Running
on
Zero
Running
on
Zero
randomtable
commited on
Commit
•
e01fffb
1
Parent(s):
1053b11
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
17 |
pipe = pipe.to(device)
|
18 |
|
19 |
MAX_SEED = np.iinfo(np.int32).max
|
20 |
-
MAX_IMAGE_SIZE =
|
21 |
|
22 |
@spaces.GPU #[uncomment to use ZeroGPU]
|
23 |
def infer(prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
@@ -91,7 +91,7 @@ with gr.Blocks(css=css) as demo:
|
|
91 |
minimum=256,
|
92 |
maximum=MAX_IMAGE_SIZE,
|
93 |
step=32,
|
94 |
-
value=
|
95 |
)
|
96 |
|
97 |
height = gr.Slider(
|
@@ -99,7 +99,7 @@ with gr.Blocks(css=css) as demo:
|
|
99 |
minimum=256,
|
100 |
maximum=MAX_IMAGE_SIZE,
|
101 |
step=32,
|
102 |
-
value=
|
103 |
)
|
104 |
|
105 |
with gr.Row():
|
|
|
17 |
pipe = pipe.to(device)
|
18 |
|
19 |
MAX_SEED = np.iinfo(np.int32).max
|
20 |
+
MAX_IMAGE_SIZE = 1024
|
21 |
|
22 |
@spaces.GPU #[uncomment to use ZeroGPU]
|
23 |
def infer(prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
|
|
91 |
minimum=256,
|
92 |
maximum=MAX_IMAGE_SIZE,
|
93 |
step=32,
|
94 |
+
value=1024, #Replace with defaults that work for your model
|
95 |
)
|
96 |
|
97 |
height = gr.Slider(
|
|
|
99 |
minimum=256,
|
100 |
maximum=MAX_IMAGE_SIZE,
|
101 |
step=32,
|
102 |
+
value=1024, #Replace with defaults that work for your model
|
103 |
)
|
104 |
|
105 |
with gr.Row():
|