Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ def generate_images(prompt):
|
|
23 |
print('calling diffusion lens')
|
24 |
for skip_layers in range(23, 0, -1):
|
25 |
images = get_images(prompt, skip_layers=skip_layers)
|
26 |
-
yield
|
|
|
27 |
|
28 |
with gr.Blocks() as demo:
|
29 |
text_input = gr.Interface(fn=generate_images, inputs="text", outputs="image")
|
|
|
23 |
print('calling diffusion lens')
|
24 |
for skip_layers in range(23, 0, -1):
|
25 |
images = get_images(prompt, skip_layers=skip_layers)
|
26 |
+
yield images[0] # Yield each image as soon as it's ready
|
27 |
+
# yield gr.Image(images[0]) # Yield each image as soon as it's ready
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
text_input = gr.Interface(fn=generate_images, inputs="text", outputs="image")
|