unknown commited on
Commit
c24cd83
2 Parent(s): 99d00c2 29c38b8

Merge branch 'main' of https://huggingface.co/spaces/caizhongang/SMPLer-X

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚡
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
- python_version: 3.8
8
  sdk_version: 4.16.0
9
  app_file: app.py
10
  pinned: false
 
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
+ python_version: 3.9
8
  sdk_version: 4.16.0
9
  app_file: app.py
10
  pinned: false
app.py CHANGED
@@ -27,7 +27,7 @@ print(torch.cuda.get_device_name(index))
27
  from main.inference import Inferer
28
  inferer = Inferer(DEFAULT_MODEL, num_gpus, OUT_FOLDER)
29
 
30
- @spaces.GPU
31
  def infer(video_input, in_threshold=0.5, num_people="Single person", render_mesh=False):
32
  os.system(f'rm -rf {OUT_FOLDER}/*')
33
  multi_person = False if (num_people == "Single person") else True
@@ -131,4 +131,4 @@ with gr.Blocks(title="SMPLer-X", css=".gradio-container") as demo:
131
  inputs=[video_input, 0.5])
132
 
133
  #demo.queue()
134
- demo.launch(debug=True)
 
27
  from main.inference import Inferer
28
  inferer = Inferer(DEFAULT_MODEL, num_gpus, OUT_FOLDER)
29
 
30
+ @spaces.GPU(enable_queue=True)
31
  def infer(video_input, in_threshold=0.5, num_people="Single person", render_mesh=False):
32
  os.system(f'rm -rf {OUT_FOLDER}/*')
33
  multi_person = False if (num_people == "Single person") else True
 
131
  inputs=[video_input, 0.5])
132
 
133
  #demo.queue()
134
+ demo.queue().launch(debug=True)