Spaces:
Build error
Build error
aki-0421
commited on
F: fix
Browse files
app.py
CHANGED
|
@@ -19,14 +19,15 @@ def generate_images(input_image: Image.Image) -> List[Image.Image]:
|
|
| 19 |
|
| 20 |
return multi_view_generator.infer(white_image=white_image)
|
| 21 |
|
| 22 |
-
|
| 23 |
with gr.Blocks() as demo:
|
| 24 |
gr.Markdown("# GPU-accelerated Image Processing")
|
| 25 |
with gr.Row():
|
| 26 |
-
input_image = gr.Image(label="Input Image", type="pil")
|
| 27 |
-
output_gallery = gr.Gallery(
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
| 31 |
|
| 32 |
demo.launch()
|
|
|
|
| 19 |
|
| 20 |
return multi_view_generator.infer(white_image=white_image)
|
| 21 |
|
|
|
|
| 22 |
with gr.Blocks() as demo:
|
| 23 |
gr.Markdown("# GPU-accelerated Image Processing")
|
| 24 |
with gr.Row():
|
| 25 |
+
input_image = gr.Image(label="Input Image", type="pil")
|
| 26 |
+
output_gallery = gr.Gallery(
|
| 27 |
+
label="Generated images", show_label=False, elem_id="gallery"
|
| 28 |
+
, columns=[3], object_fit="contain", height="auto")
|
| 29 |
|
| 30 |
+
btn = gr.Button("Generate")
|
| 31 |
+
btn.click(generate_images, input_image, output_gallery)
|
| 32 |
|
| 33 |
demo.launch()
|