NeoPy commited on
Commit
52f3707
Β·
verified Β·
1 Parent(s): 59fa6ba

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +4 -4
gradio_app.py CHANGED
@@ -249,7 +249,7 @@ def _gen_shape(
249
  main_image = image if not MV_MODE else image['front']
250
  return mesh, main_image, save_folder, stats, seed
251
 
252
- @spaces.GPU(duration=90)
253
  def generation_all(
254
  caption=None,
255
  image=None,
@@ -314,7 +314,7 @@ def generation_all(
314
  seed,
315
  )
316
 
317
- @spaces.GPU(duration=40)
318
  def shape_generation(
319
  caption=None,
320
  image=None,
@@ -400,7 +400,7 @@ def build_app():
400
 
401
  """
402
 
403
- with gr.Blocks(theme=gr.themes.Base(), title='Hunyuan-3D-2.0', analytics_enabled=False, css=custom_css) as demo:
404
  gr.HTML(title_html)
405
 
406
  with gr.Row():
@@ -768,4 +768,4 @@ if __name__ == '__main__':
768
  app = gr.mount_gradio_app(app, demo, path="/")
769
  from spaces import zero
770
  zero.startup()
771
- uvicorn.run(app, host=args.host, port=args.port)
 
249
  main_image = image if not MV_MODE else image['front']
250
  return mesh, main_image, save_folder, stats, seed
251
 
252
+ #@spaces.GPU(duration=90)
253
  def generation_all(
254
  caption=None,
255
  image=None,
 
314
  seed,
315
  )
316
 
317
+ #@spaces.GPU(duration=40)
318
  def shape_generation(
319
  caption=None,
320
  image=None,
 
400
 
401
  """
402
 
403
+ with gr.Blocks(title='Hunyuan-3D-2.0') as demo:
404
  gr.HTML(title_html)
405
 
406
  with gr.Row():
 
768
  app = gr.mount_gradio_app(app, demo, path="/")
769
  from spaces import zero
770
  zero.startup()
771
+ uvicorn.run(app, host=args.host, port=args.port, css=custom_css, theme="NeoPy/Soft")