Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -123,22 +123,23 @@ def process_image(input_url):
|
|
123 |
def gradio_interface():
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown("# PSHuman: Photorealistic Single-image 3D Human Reconstruction using Cross-Scale Multiview Diffusion and Explicit Remeshing")
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
133 |
|
134 |
-
|
135 |
-
|
136 |
examples = examples_folder,
|
137 |
inputs = [input_image],
|
138 |
examples_per_page = 6
|
139 |
-
|
140 |
|
141 |
-
output_video= gr.Video(label="Output Video")
|
142 |
|
143 |
submit_button.click(process_image, inputs=[input_image], outputs=[output_video])
|
144 |
|
|
|
123 |
def gradio_interface():
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown("# PSHuman: Photorealistic Single-image 3D Human Reconstruction using Cross-Scale Multiview Diffusion and Explicit Remeshing")
|
126 |
+
with gr.Row():
|
127 |
+
|
128 |
+
with gr.Column(scale=1):
|
129 |
+
input_image = gr.Image(
|
130 |
+
label="Image input",
|
131 |
+
type="filepath",
|
132 |
+
height=240
|
133 |
+
)
|
134 |
|
135 |
+
submit_button = gr.Button("Process")
|
136 |
+
gr.Examples(
|
137 |
examples = examples_folder,
|
138 |
inputs = [input_image],
|
139 |
examples_per_page = 6
|
140 |
+
)
|
141 |
|
142 |
+
output_video= gr.Video(label="Output Video", scale=3)
|
143 |
|
144 |
submit_button.click(process_image, inputs=[input_image], outputs=[output_video])
|
145 |
|