Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
27bd4b7
1
Parent(s):
e99ca73
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
29 |
MAX_IMAGE_SIZE = 1024
|
30 |
|
31 |
@spaces.GPU
|
32 |
-
def infer(prompt, negative_prompt="", seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=5
|
33 |
|
34 |
if randomize_seed:
|
35 |
seed = random.randint(0, MAX_SEED)
|
|
|
29 |
MAX_IMAGE_SIZE = 1024
|
30 |
|
31 |
@spaces.GPU
|
32 |
+
def infer(prompt, negative_prompt="", seed=42, randomize_seed=False, width=1024, height=1024, guidance_scale=3.5, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
33 |
|
34 |
if randomize_seed:
|
35 |
seed = random.randint(0, MAX_SEED)
|