Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,12 +27,12 @@ def infer(
|
|
| 27 |
# model_id: Optional[str] = "CompVis/stable-diffusion-v1-4",
|
| 28 |
negative_prompt=gr.Text('cat, dog'),
|
| 29 |
prompt: str = 'cute_animal',
|
| 30 |
-
seed:
|
| 31 |
-
randomize_seed=False,
|
| 32 |
width = 128,
|
| 33 |
height = 128,
|
| 34 |
-
guidance_scale
|
| 35 |
-
num_inference_steps
|
| 36 |
progress=gr.Progress(track_tqdm=True),
|
| 37 |
):
|
| 38 |
if randomize_seed:
|
|
|
|
| 27 |
# model_id: Optional[str] = "CompVis/stable-diffusion-v1-4",
|
| 28 |
negative_prompt=gr.Text('cat, dog'),
|
| 29 |
prompt: str = 'cute_animal',
|
| 30 |
+
seed: int = 42,
|
| 31 |
+
randomize_seed = False,
|
| 32 |
width = 128,
|
| 33 |
height = 128,
|
| 34 |
+
guidance_scale = 7,
|
| 35 |
+
num_inference_steps = 20,
|
| 36 |
progress=gr.Progress(track_tqdm=True),
|
| 37 |
):
|
| 38 |
if randomize_seed:
|