Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,9 +57,9 @@ def infer(prompts, negative_prompts, image):
|
|
| 57 |
output_images = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
| 58 |
return output_images
|
| 59 |
|
| 60 |
-
e_images = ['
|
| 61 |
-
'
|
| 62 |
-
'
|
| 63 |
e_prompts = ['a dog in the middle of the road, shadow on the ground,light direction north-east',
|
| 64 |
'a skyscraper in the middle of an intersection, shadow on the ground, light direction east',
|
| 65 |
'a red rural house, light temperature 5500, shadow on the ground, light direction south-west']
|
|
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
|
|
| 76 |
with gr.Column():
|
| 77 |
in_image = gr.Image(label="Depth Map Conditioning")
|
| 78 |
with gr.Column():
|
| 79 |
-
out_image = gr.
|
| 80 |
with gr.Row():
|
| 81 |
btn = gr.Button("Run")
|
| 82 |
gr.Examples(examples=examples,
|
|
|
|
| 57 |
output_images = pipe.numpy_to_pil(np.asarray(output.reshape((num_samples,) + output.shape[-3:])))
|
| 58 |
return output_images
|
| 59 |
|
| 60 |
+
e_images = ['0.png',
|
| 61 |
+
'1.png'
|
| 62 |
+
'2.png']
|
| 63 |
e_prompts = ['a dog in the middle of the road, shadow on the ground,light direction north-east',
|
| 64 |
'a skyscraper in the middle of an intersection, shadow on the ground, light direction east',
|
| 65 |
'a red rural house, light temperature 5500, shadow on the ground, light direction south-west']
|
|
|
|
| 76 |
with gr.Column():
|
| 77 |
in_image = gr.Image(label="Depth Map Conditioning")
|
| 78 |
with gr.Column():
|
| 79 |
+
out_image = gr.Gallery(label="Generated Image")
|
| 80 |
with gr.Row():
|
| 81 |
btn = gr.Button("Run")
|
| 82 |
gr.Examples(examples=examples,
|