Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
| 18 |
pipe = pipe.to(device)
|
| 19 |
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
-
MAX_IMAGE_SIZE =
|
| 22 |
|
| 23 |
|
| 24 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
|
@@ -103,7 +103,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 103 |
width = gr.Slider(
|
| 104 |
label="Width",
|
| 105 |
minimum=256,
|
| 106 |
-
maximum=
|
| 107 |
step=32,
|
| 108 |
value=1024, # Replace with defaults that work for your model
|
| 109 |
)
|
|
@@ -111,7 +111,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 111 |
height = gr.Slider(
|
| 112 |
label="Height",
|
| 113 |
minimum=256,
|
| 114 |
-
maximum=
|
| 115 |
step=32,
|
| 116 |
value=1024, # Replace with defaults that work for your model
|
| 117 |
)
|
|
|
|
| 18 |
pipe = pipe.to(device)
|
| 19 |
|
| 20 |
MAX_SEED = np.iinfo(np.int32).max
|
| 21 |
+
MAX_IMAGE_SIZE = 1920
|
| 22 |
|
| 23 |
|
| 24 |
# @spaces.GPU #[uncomment to use ZeroGPU]
|
|
|
|
| 103 |
width = gr.Slider(
|
| 104 |
label="Width",
|
| 105 |
minimum=256,
|
| 106 |
+
maximum=1920,
|
| 107 |
step=32,
|
| 108 |
value=1024, # Replace with defaults that work for your model
|
| 109 |
)
|
|
|
|
| 111 |
height = gr.Slider(
|
| 112 |
label="Height",
|
| 113 |
minimum=256,
|
| 114 |
+
maximum=1080,
|
| 115 |
step=32,
|
| 116 |
value=1024, # Replace with defaults that work for your model
|
| 117 |
)
|