Spaces:
Runtime error
Runtime error
upgrade to gradio 3
Browse files- PIFu/spaces.py +5 -4
- README.md +1 -1
- 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.
|
150 |
outputs=[
|
151 |
-
gr.
|
152 |
clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model"),
|
153 |
-
gr.
|
154 |
],
|
155 |
examples=examples,
|
156 |
allow_flagging="never",
|
|
|
157 |
)
|
158 |
|
159 |
if __name__ == "__main__":
|
160 |
-
iface.launch(debug=True, enable_queue=False
|
|
|
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:
|
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
|