Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
|
@@ -368,7 +368,7 @@ def build_app(
|
|
| 368 |
subfolder: str = "hunyuan3d-dit-v2-0"
|
| 369 |
) -> gr.Blocks:
|
| 370 |
"""
|
| 371 |
-
Build a Gradio app for
|
| 372 |
|
| 373 |
Args:
|
| 374 |
mv_mode (bool): Enable multi-view image-to-3D generation.
|
|
@@ -379,7 +379,7 @@ def build_app(
|
|
| 379 |
gr.Blocks: Configured Gradio app.
|
| 380 |
"""
|
| 381 |
# Define title based on model configuration
|
| 382 |
-
title = "
|
| 383 |
if mv_mode:
|
| 384 |
title = "Hunyuan3D-2mv: Image to 3D Generation with 1-4 Views"
|
| 385 |
if "mini" in subfolder:
|
|
@@ -388,7 +388,7 @@ def build_app(
|
|
| 388 |
title = title.replace(":", "-Turbo: Fast ")
|
| 389 |
|
| 390 |
# Check if logo exists
|
| 391 |
-
logo_path = "
|
| 392 |
logo_html = ""
|
| 393 |
if os.path.exists(logo_path):
|
| 394 |
logo_html = f'<img src="{logo_path}" alt="PolyGenixAI Logo" style="height: 50px; margin-right: 10px;">'
|
|
|
|
| 368 |
subfolder: str = "hunyuan3d-dit-v2-0"
|
| 369 |
) -> gr.Blocks:
|
| 370 |
"""
|
| 371 |
+
Build a Gradio app for PolyGenixAI with custom UI and API support.
|
| 372 |
|
| 373 |
Args:
|
| 374 |
mv_mode (bool): Enable multi-view image-to-3D generation.
|
|
|
|
| 379 |
gr.Blocks: Configured Gradio app.
|
| 380 |
"""
|
| 381 |
# Define title based on model configuration
|
| 382 |
+
title = "PolyGenixAI: Image to 3D Generation"
|
| 383 |
if mv_mode:
|
| 384 |
title = "Hunyuan3D-2mv: Image to 3D Generation with 1-4 Views"
|
| 385 |
if "mini" in subfolder:
|
|
|
|
| 388 |
title = title.replace(":", "-Turbo: Fast ")
|
| 389 |
|
| 390 |
# Check if logo exists
|
| 391 |
+
logo_path = "https://drive.google.com/file/d/1rb7b2NWpAjbPQIVeZsIovQq-QLdKZod5/view?usp=sharing"
|
| 392 |
logo_html = ""
|
| 393 |
if os.path.exists(logo_path):
|
| 394 |
logo_html = f'<img src="{logo_path}" alt="PolyGenixAI Logo" style="height: 50px; margin-right: 10px;">'
|