Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -124,9 +124,28 @@ def process_image(input_url):
|
|
124 |
def gradio_interface():
|
125 |
with gr.Blocks() as app:
|
126 |
gr.Markdown("# PSHuman: Photorealistic Single-image 3D Human Reconstruction using Cross-Scale Multiview Diffusion and Explicit Remeshing")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
with gr.Row():
|
128 |
|
129 |
-
with gr.Column(scale=
|
130 |
input_image = gr.Image(
|
131 |
label="Image input",
|
132 |
type="filepath",
|
@@ -137,7 +156,7 @@ def gradio_interface():
|
|
137 |
gr.Examples(
|
138 |
examples = examples_folder,
|
139 |
inputs = [input_image],
|
140 |
-
examples_per_page =
|
141 |
)
|
142 |
|
143 |
output_video= gr.Video(label="Output Video", scale=3)
|
@@ -148,4 +167,4 @@ def gradio_interface():
|
|
148 |
|
149 |
# Launch the Gradio app
|
150 |
app = gradio_interface()
|
151 |
-
app.launch()
|
|
|
124 |
def gradio_interface():
|
125 |
with gr.Blocks() as app:
|
126 |
gr.Markdown("# PSHuman: Photorealistic Single-image 3D Human Reconstruction using Cross-Scale Multiview Diffusion and Explicit Remeshing")
|
127 |
+
gr.HTML("""
|
128 |
+
<div style="display:flex;column-gap:4px;">
|
129 |
+
<a href="https://github.com/pengHTYX/PSHuman">
|
130 |
+
<img src='https://img.shields.io/badge/GitHub-Repo-blue'>
|
131 |
+
</a>
|
132 |
+
<a href="https://penghtyx.github.io/PSHuman/">
|
133 |
+
<img src='https://img.shields.io/badge/Project-Page-green'>
|
134 |
+
</a>
|
135 |
+
<a href="https://arxiv.org/pdf/2409.10141">
|
136 |
+
<img src='https://img.shields.io/badge/ArXiv-Paper-red'>
|
137 |
+
</a>
|
138 |
+
<a href="https://huggingface.co/spaces/fffiloni/PSHuman?duplicate=true">
|
139 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
|
140 |
+
</a>
|
141 |
+
<a href="https://huggingface.co/fffiloni">
|
142 |
+
<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
|
143 |
+
</a>
|
144 |
+
</div>
|
145 |
+
""")
|
146 |
with gr.Row():
|
147 |
|
148 |
+
with gr.Column(scale=2):
|
149 |
input_image = gr.Image(
|
150 |
label="Image input",
|
151 |
type="filepath",
|
|
|
156 |
gr.Examples(
|
157 |
examples = examples_folder,
|
158 |
inputs = [input_image],
|
159 |
+
examples_per_page = 4
|
160 |
)
|
161 |
|
162 |
output_video= gr.Video(label="Output Video", scale=3)
|
|
|
167 |
|
168 |
# Launch the Gradio app
|
169 |
app = gradio_interface()
|
170 |
+
app.launch(show_api=False, show_error=True)
|