Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ pipe = pipe.to(device)
|
|
| 19 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, algorithm_type="sde-dpmsolver++", use_karras_sigmas=True)
|
| 20 |
|
| 21 |
MAX_SEED = np.iinfo(np.int32).max
|
| 22 |
-
MAX_IMAGE_SIZE =
|
| 23 |
|
| 24 |
|
| 25 |
@spaces.GPU #[uncomment to use ZeroGPU]
|
|
@@ -81,7 +81,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 81 |
label="Negative prompt",
|
| 82 |
max_lines=7,
|
| 83 |
placeholder="Enter a negative prompt",
|
| 84 |
-
value="
|
| 85 |
)
|
| 86 |
|
| 87 |
seed = gr.Slider(
|
|
@@ -125,7 +125,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 125 |
minimum=1,
|
| 126 |
maximum=50,
|
| 127 |
step=1,
|
| 128 |
-
value=
|
| 129 |
)
|
| 130 |
|
| 131 |
|
|
|
|
| 19 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, algorithm_type="sde-dpmsolver++", use_karras_sigmas=True)
|
| 20 |
|
| 21 |
MAX_SEED = np.iinfo(np.int32).max
|
| 22 |
+
MAX_IMAGE_SIZE = 1280
|
| 23 |
|
| 24 |
|
| 25 |
@spaces.GPU #[uncomment to use ZeroGPU]
|
|
|
|
| 81 |
label="Negative prompt",
|
| 82 |
max_lines=7,
|
| 83 |
placeholder="Enter a negative prompt",
|
| 84 |
+
value=""
|
| 85 |
)
|
| 86 |
|
| 87 |
seed = gr.Slider(
|
|
|
|
| 125 |
minimum=1,
|
| 126 |
maximum=50,
|
| 127 |
step=1,
|
| 128 |
+
value=30, # Replace with defaults that work for your model
|
| 129 |
)
|
| 130 |
|
| 131 |
|