Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +24 -26
gradio_app.py
CHANGED
|
@@ -362,29 +362,27 @@ def shape_generation(
|
|
| 362 |
|
| 363 |
|
| 364 |
def build_app():
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
<a href="https://huggingface.co/Tencent/Hunyuan3D-2"> Pretrained Models</a>  
|
| 387 |
-
</div>
|
| 388 |
"""
|
| 389 |
custom_css = """
|
| 390 |
.app.svelte-wpkpf6.svelte-wpkpf6:not(.fill_width) {
|
|
@@ -656,9 +654,9 @@ if __name__ == '__main__':
|
|
| 656 |
import argparse
|
| 657 |
|
| 658 |
parser = argparse.ArgumentParser()
|
| 659 |
-
parser.add_argument("--model_path", type=str, default='
|
| 660 |
-
parser.add_argument("--subfolder", type=str, default='
|
| 661 |
-
parser.add_argument("--texgen_model_path", type=str, default='
|
| 662 |
parser.add_argument('--port', type=int, default=7860)
|
| 663 |
parser.add_argument('--host', type=str, default='0.0.0.0')
|
| 664 |
parser.add_argument('--device', type=str, default='cuda')
|
|
|
|
| 362 |
|
| 363 |
|
| 364 |
def build_app():
|
| 365 |
+
title = 'PolyGenixAI: High Resolution Textured 3D Assets Generation'
|
| 366 |
+
if MV_MODE:
|
| 367 |
+
title = 'PolyGenixAI: Image to 3D Generation with 1-4 Views'
|
| 368 |
+
if 'mini' in args.subfolder:
|
| 369 |
+
title = 'PolyGenixAI-Mini: Strong 0.6B Image to Shape Generator'
|
| 370 |
+
if TURBO_MODE:
|
| 371 |
+
title = title.replace(':', '-Turbo: Fast ')
|
| 372 |
+
|
| 373 |
+
title_html = f"""
|
| 374 |
+
<div style="font-size: 2em; font-weight: bold; text-align: center; margin-bottom: 5px">
|
| 375 |
+
{title}
|
| 376 |
+
</div>
|
| 377 |
+
<div align="center">
|
| 378 |
+
PolyGenixAI Team
|
| 379 |
+
</div>
|
| 380 |
+
<div align="center">
|
| 381 |
+
<a href="https://github.com/<your-username>/PolyGenixAI">Github</a> β
|
| 382 |
+
<a href="https://<your-website>.com">Homepage</a> β
|
| 383 |
+
<a href="https://huggingface.co/<your-username>/PolyGenixAI">Pretrained Models</a> β
|
| 384 |
+
</div>
|
| 385 |
+
"""
|
|
|
|
|
|
|
| 386 |
"""
|
| 387 |
custom_css = """
|
| 388 |
.app.svelte-wpkpf6.svelte-wpkpf6:not(.fill_width) {
|
|
|
|
| 654 |
import argparse
|
| 655 |
|
| 656 |
parser = argparse.ArgumentParser()
|
| 657 |
+
parser.add_argument("--model_path", type=str, default='anvilinteractiv/PolyGenixAI')
|
| 658 |
+
parser.add_argument("--subfolder", type=str, default='polygenixai-dit-v2-mini-turbo')
|
| 659 |
+
parser.add_argument("--texgen_model_path", type=str, default='anvilinteractiv/PolyGenixAI')
|
| 660 |
parser.add_argument('--port', type=int, default=7860)
|
| 661 |
parser.add_argument('--host', type=str, default='0.0.0.0')
|
| 662 |
parser.add_argument('--device', type=str, default='cuda')
|