anvilinteractiv commited on
Commit
011df06
Β·
verified Β·
1 Parent(s): 40b9abf

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +24 -26
gradio_app.py CHANGED
@@ -362,29 +362,27 @@ def shape_generation(
362
 
363
 
364
  def build_app():
365
- title = 'Hunyuan3D-2: 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
-
373
- title_html = f"""
374
- <div style="font-size: 2em; font-weight: bold; text-align: center; margin-bottom: 5px">
375
-
376
- {title}
377
- </div>
378
- <div align="center">
379
- Tencent Hunyuan3D Team
380
- </div>
381
- <div align="center">
382
- <a href="https://github.com/tencent/Hunyuan3D-2">Github</a> &ensp;
383
- <a href="http://3d-models.hunyuan.tencent.com">Homepage</a> &ensp;
384
- <a href="https://3d.hunyuan.tencent.com">Hunyuan3D Studio</a> &ensp;
385
- <a href="#">Technical Report</a> &ensp;
386
- <a href="https://huggingface.co/Tencent/Hunyuan3D-2"> Pretrained Models</a> &ensp;
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='tencent/Hunyuan3D-2')
660
- parser.add_argument("--subfolder", type=str, default='hunyuan3d-dit-v2-0')
661
- parser.add_argument("--texgen_model_path", type=str, default='tencent/Hunyuan3D-2')
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')