Spaces:
Sleeping
Sleeping
Add subprocess.run to install torchmcubes package
Browse files- .gitignore +1 -0
- app.py +3 -0
- requirements.txt +1 -1
.gitignore
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
.env
|
| 2 |
output.png
|
|
|
|
|
|
| 1 |
.env
|
| 2 |
output.png
|
| 3 |
+
wheel/torchmcubes-0.1.0-cp310-cp310-linux_x86_64.whl
|
app.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from worker import worker # import the worker function
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
def greet(name):
|
| 5 |
return "Hello " + name + "!!"
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from worker import worker # import the worker function
|
| 3 |
+
import subprocess
|
| 4 |
+
import shlex
|
| 5 |
+
subprocess.run(shlex.split('pip install wheel/torchmcubes-0.1.0-cp310-cp310-linux_x86_64.whl'))
|
| 6 |
|
| 7 |
def greet(name):
|
| 8 |
return "Hello " + name + "!!"
|
requirements.txt
CHANGED
|
@@ -13,4 +13,4 @@ rembg
|
|
| 13 |
huggingface-hub
|
| 14 |
imageio[ffmpeg]
|
| 15 |
setuptools
|
| 16 |
-
git+https://github.com/tatsy/torchmcubes.git
|
|
|
|
| 13 |
huggingface-hub
|
| 14 |
imageio[ffmpeg]
|
| 15 |
setuptools
|
| 16 |
+
# git+https://github.com/tatsy/torchmcubes.git
|