Spaces:
Runtime error
Runtime error
Commit
·
a39ac15
1
Parent(s):
c647f33
fuse the install into app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import random
|
| 3 |
import gradio as gr
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
+
|
| 3 |
+
# a workaround for gradio SDK
|
| 4 |
+
# git clone https://github.com/yuanze1024/Pointnet2_PyTorch.git && cd Pointnet2_PyTorch/pointnet2_ops_lib && pip install .
|
| 5 |
+
subprocess.call(["git", "clone", "https://github.com/yuanze1024/Pointnet2_PyTorch.git"])
|
| 6 |
+
subprocess.call(["pip", "install", "."], cwd="Pointnet2_PyTorch/pointnet2_ops_lib")
|
| 7 |
+
|
| 8 |
import os
|
| 9 |
import random
|
| 10 |
import gradio as gr
|