NicolasG2523 commited on
Commit
b3a6259
·
verified ·
1 Parent(s): fb64dc7

Upload gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -5
gradio_app.py CHANGED
@@ -31,7 +31,6 @@ from hy3dgen.shapegen.utils import logger
31
 
32
  MAX_SEED = 1e7
33
 
34
-
35
  import spaces
36
  import subprocess
37
  import sys
@@ -42,10 +41,6 @@ print('install custom')
42
  subprocess.run(shlex.split("pip install custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl"), check=True)
43
 
44
 
45
- @spaces.GPU
46
- def dummy_gpu_function():
47
- pass
48
-
49
  def get_example_img_list():
50
  print('Loading example img list ...')
51
  return sorted(glob('./assets/example_images/**/*.png', recursive=True))
@@ -364,6 +359,7 @@ def shape_generation(
364
  )
365
 
366
 
 
367
  def build_app():
368
  title = 'Hunyuan3D-2: High Resolution Textured 3D Assets Generation'
369
  if MV_MODE:
@@ -536,6 +532,7 @@ def build_app():
536
  if HAS_T2I:
537
  tab_tp.select(fn=lambda: gr.update(selected='tab_txt_gallery'), outputs=gallery)
538
 
 
539
  btn.click(
540
  shape_generation,
541
  inputs=[
 
31
 
32
  MAX_SEED = 1e7
33
 
 
34
  import spaces
35
  import subprocess
36
  import sys
 
41
  subprocess.run(shlex.split("pip install custom_rasterizer-0.1-cp310-cp310-linux_x86_64.whl"), check=True)
42
 
43
 
 
 
 
 
44
  def get_example_img_list():
45
  print('Loading example img list ...')
46
  return sorted(glob('./assets/example_images/**/*.png', recursive=True))
 
359
  )
360
 
361
 
362
+ @spaces.GPU
363
  def build_app():
364
  title = 'Hunyuan3D-2: High Resolution Textured 3D Assets Generation'
365
  if MV_MODE:
 
532
  if HAS_T2I:
533
  tab_tp.select(fn=lambda: gr.update(selected='tab_txt_gallery'), outputs=gallery)
534
 
535
+
536
  btn.click(
537
  shape_generation,
538
  inputs=[