Spaces:
Running
on
Zero
Running
on
Zero
add status bar so people can see eta
#1
by
Walmart-the-bag
- opened
app.py
CHANGED
@@ -17,7 +17,7 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
17 |
MAX_IMAGE_SIZE = 1024
|
18 |
|
19 |
@spaces.GPU(duration=20,queue=False)
|
20 |
-
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
21 |
if randomize_seed:
|
22 |
seed = random.randint(0, MAX_SEED)
|
23 |
generator = torch.Generator().manual_seed(seed)
|
|
|
17 |
MAX_IMAGE_SIZE = 1024
|
18 |
|
19 |
@spaces.GPU(duration=20,queue=False)
|
20 |
+
def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps, progress=gr.Progress(track_tqdm=True)):
|
21 |
if randomize_seed:
|
22 |
seed = random.randint(0, MAX_SEED)
|
23 |
generator = torch.Generator().manual_seed(seed)
|