Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,12 +21,15 @@ def get_prompt(prompt):
|
|
| 21 |
|
| 22 |
def generate_images(prompt):
|
| 23 |
print('calling diffusion lens')
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
| 25 |
print('after call images')
|
| 26 |
-
return
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
with gr.Blocks() as demo:
|
| 31 |
-
text_input = gr.Interface(fn=generate_images, inputs="text", outputs="image")
|
| 32 |
demo.launch()
|
|
|
|
| 21 |
|
| 22 |
def generate_images(prompt):
|
| 23 |
print('calling diffusion lens')
|
| 24 |
+
all_images = []
|
| 25 |
+
for skip_layers in range(2):
|
| 26 |
+
images = get_images(prompt, skip_layers=skip_layers)
|
| 27 |
+
all_images.append(images[0])
|
| 28 |
print('after call images')
|
| 29 |
+
return all_images
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
with gr.Blocks() as demo:
|
| 34 |
+
text_input = gr.Interface(fn=generate_images, inputs="text", outputs=["image"]*2)
|
| 35 |
demo.launch()
|