radames commited on
Commit
c4e1533
β€’
1 Parent(s): 0686993

upgrade to gradio 3

Browse files
Files changed (3) hide show
  1. PIFu/spaces.py +5 -4
  2. README.md +1 -1
  3. requirements.txt +2 -1
PIFu/spaces.py CHANGED
@@ -146,15 +146,16 @@ The pre-trained model has the following warning:
146
  iface = gr.Interface(
147
  fn=process,
148
  description=description,
149
- inputs=gr.inputs.Image(type="filepath", label="Input Image"),
150
  outputs=[
151
- gr.outputs.Image3D(
152
  clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
153
- gr.outputs.File(label="Download 3D Model")
154
  ],
155
  examples=examples,
156
  allow_flagging="never",
 
157
  )
158
 
159
  if __name__ == "__main__":
160
- iface.launch(debug=True, enable_queue=False, cache_examples=True)
 
146
  iface = gr.Interface(
147
  fn=process,
148
  description=description,
149
+ inputs=gr.Image(type="filepath", label="Input Image"),
150
  outputs=[
151
+ gr.Model3D(
152
  clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
153
+ gr.File(label="Download 3D Model")
154
  ],
155
  examples=examples,
156
  allow_flagging="never",
157
+ cache_examples=True
158
  )
159
 
160
  if __name__ == "__main__":
161
+ iface.launch(debug=True, enable_queue=False)
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ§πŸ½β€β™€οΈπŸ§πŸ»πŸ§πŸ½β€β™‚οΈΒ 
4
  colorFrom: pink
5
  colorTo: green
6
  sdk: gradio
7
- sdk_version: 2.9.4
8
  app_file: ./PIFu/spaces.py
9
  pinned: false
10
  python_version: 3.7.13
 
4
  colorFrom: pink
5
  colorTo: green
6
  sdk: gradio
7
+ sdk_version: 3.0b8
8
  app_file: ./PIFu/spaces.py
9
  pinned: false
10
  python_version: 3.7.13
requirements.txt CHANGED
@@ -22,4 +22,5 @@ trimesh==3.5.23
22
  tqdm==4.64.0
23
  paddlehub
24
  paddlepaddle
25
- glob2
 
 
22
  tqdm==4.64.0
23
  paddlehub
24
  paddlepaddle
25
+ glob2
26
+ gradio==3b8