hysts HF staff commited on
Commit
d7b8894
1 Parent(s): 002f9ff
Files changed (3) hide show
  1. app.py +1 -1
  2. app_image_to_3d.py +1 -0
  3. app_text_to_3d.py +1 -0
app.py CHANGED
@@ -25,4 +25,4 @@ with gr.Blocks(css='style.css') as demo:
25
  create_demo_text_to_3d(model)
26
  with gr.Tab(label='Image to 3D'):
27
  create_demo_image_to_3d(model)
28
- demo.queue(api_open=False, max_size=10).launch()
 
25
  create_demo_text_to_3d(model)
26
  with gr.Tab(label='Image to 3D'):
27
  create_demo_image_to_3d(model)
28
+ demo.queue(max_size=10).launch()
app_image_to_3d.py CHANGED
@@ -71,5 +71,6 @@ def create_demo(model: Model) -> gr.Blocks:
71
  fn=model.run_image,
72
  inputs=inputs,
73
  outputs=result,
 
74
  )
75
  return demo
 
71
  fn=model.run_image,
72
  inputs=inputs,
73
  outputs=result,
74
+ api_name='image-to-3d',
75
  )
76
  return demo
app_text_to_3d.py CHANGED
@@ -84,5 +84,6 @@ def create_demo(model: Model) -> gr.Blocks:
84
  fn=model.run_text,
85
  inputs=inputs,
86
  outputs=result,
 
87
  )
88
  return demo
 
84
  fn=model.run_text,
85
  inputs=inputs,
86
  outputs=result,
87
+ api_name='text-to-3d',
88
  )
89
  return demo