Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +9 -9
gradio_app.py
CHANGED
|
@@ -364,9 +364,9 @@ def shape_generation(
|
|
| 364 |
def build_app():
|
| 365 |
title = 'PolyGenixAI: High Resolution Textured 3D Assets Generation'
|
| 366 |
if MV_MODE:
|
| 367 |
-
title = '
|
| 368 |
if 'mini' in args.subfolder:
|
| 369 |
-
title = '
|
| 370 |
if TURBO_MODE:
|
| 371 |
title = title.replace(':', '-Turbo: Fast ')
|
| 372 |
|
|
@@ -375,12 +375,14 @@ def build_app():
|
|
| 375 |
{title}
|
| 376 |
</div>
|
| 377 |
<div align="center">
|
| 378 |
-
|
| 379 |
</div>
|
| 380 |
<div align="center">
|
| 381 |
-
<a href="https://github.com/
|
| 382 |
-
<a href="
|
| 383 |
-
<a href="https://
|
|
|
|
|
|
|
| 384 |
</div>
|
| 385 |
"""
|
| 386 |
custom_css = """
|
|
@@ -390,11 +392,9 @@ def build_app():
|
|
| 390 |
.mv-image button .wrap {
|
| 391 |
font-size: 10px;
|
| 392 |
}
|
| 393 |
-
|
| 394 |
.mv-image .icon-wrap {
|
| 395 |
width: 20px;
|
| 396 |
}
|
| 397 |
-
|
| 398 |
"""
|
| 399 |
|
| 400 |
with gr.Blocks(theme=gr.themes.Base(), title='Hunyuan-3D-2.0', analytics_enabled=False, css=custom_css) as demo:
|
|
@@ -765,4 +765,4 @@ if __name__ == '__main__':
|
|
| 765 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 766 |
from spaces import zero
|
| 767 |
zero.startup()
|
| 768 |
-
uvicorn.run(app, host=args.host, port=args.port)
|
|
|
|
| 364 |
def build_app():
|
| 365 |
title = 'PolyGenixAI: High Resolution Textured 3D Assets Generation'
|
| 366 |
if MV_MODE:
|
| 367 |
+
title = 'Hunyuan3D-2mv: Image to 3D Generation with 1-4 Views'
|
| 368 |
if 'mini' in args.subfolder:
|
| 369 |
+
title = 'Hunyuan3D-2mini: Strong 0.6B Image to Shape Generator'
|
| 370 |
if TURBO_MODE:
|
| 371 |
title = title.replace(':', '-Turbo: Fast ')
|
| 372 |
|
|
|
|
| 375 |
{title}
|
| 376 |
</div>
|
| 377 |
<div align="center">
|
| 378 |
+
Tencent Hunyuan3D Team
|
| 379 |
</div>
|
| 380 |
<div align="center">
|
| 381 |
+
<a href="https://github.com/tencent/Hunyuan3D-2">Github</a>  
|
| 382 |
+
<a href="http://3d-models.hunyuan.tencent.com">Homepage</a>  
|
| 383 |
+
<a href="https://3d.hunyuan.tencent.com">Hunyuan3D Studio</a>  
|
| 384 |
+
<a href="#">Technical Report</a>  
|
| 385 |
+
<a href="https://huggingface.co/Tencent/Hunyuan3D-2"> Pretrained Models</a>  
|
| 386 |
</div>
|
| 387 |
"""
|
| 388 |
custom_css = """
|
|
|
|
| 392 |
.mv-image button .wrap {
|
| 393 |
font-size: 10px;
|
| 394 |
}
|
|
|
|
| 395 |
.mv-image .icon-wrap {
|
| 396 |
width: 20px;
|
| 397 |
}
|
|
|
|
| 398 |
"""
|
| 399 |
|
| 400 |
with gr.Blocks(theme=gr.themes.Base(), title='Hunyuan-3D-2.0', analytics_enabled=False, css=custom_css) as demo:
|
|
|
|
| 765 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 766 |
from spaces import zero
|
| 767 |
zero.startup()
|
| 768 |
+
uvicorn.run(app, host=args.host, port=args.port)
|