Spaces:
Runtime error
Runtime error
treasuraid
commited on
Commit
•
d1ca92a
1
Parent(s):
1e6b2bf
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import time
|
|
5 |
|
6 |
import streamlit as st
|
7 |
|
|
|
8 |
from diffusers import DiffusionPipeline, UNet2DConditionModel
|
9 |
from PIL import Image
|
10 |
|
@@ -72,7 +73,7 @@ def main():
|
|
72 |
|
73 |
generator = torch.Generator(device=device).manual_seed(seed)
|
74 |
images = []
|
75 |
-
for img_idx in range(num_images):
|
76 |
generated_image = pipeline(prompt, num_inference_steps=30, generator=generator).images[0]
|
77 |
images.append(generated_image)
|
78 |
|
|
|
5 |
|
6 |
import streamlit as st
|
7 |
|
8 |
+
from stqdm import stqdm
|
9 |
from diffusers import DiffusionPipeline, UNet2DConditionModel
|
10 |
from PIL import Image
|
11 |
|
|
|
73 |
|
74 |
generator = torch.Generator(device=device).manual_seed(seed)
|
75 |
images = []
|
76 |
+
for img_idx in stqdm(range(num_images)):
|
77 |
generated_image = pipeline(prompt, num_inference_steps=30, generator=generator).images[0]
|
78 |
images.append(generated_image)
|
79 |
|