Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,12 +3,12 @@ import numpy as np
|
|
| 3 |
import gradio as gr
|
| 4 |
import os
|
| 5 |
#os.system("sudo apt-get install nvIDia-cuda-toolkit")
|
| 6 |
-
|
| 7 |
os.system("/usr/local/bin/python -m pip install --upgrade pip")
|
| 8 |
os.system("pip3 install collections")
|
| 9 |
os.system("pip3 install torchvision")
|
| 10 |
os.system("pip3 install einops")
|
| 11 |
-
os.system("pip3 install git+https://github.com/lucasb-eyer/pydensecrf.git")
|
| 12 |
#os.system("pip install argparse")
|
| 13 |
import pydensecrf.densecrf as dcrf
|
| 14 |
from PIL import Image
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import os
|
| 5 |
#os.system("sudo apt-get install nvIDia-cuda-toolkit")
|
| 6 |
+
os.system("pip3 install torch")
|
| 7 |
os.system("/usr/local/bin/python -m pip install --upgrade pip")
|
| 8 |
os.system("pip3 install collections")
|
| 9 |
os.system("pip3 install torchvision")
|
| 10 |
os.system("pip3 install einops")
|
| 11 |
+
os.system("pip3 install git+https://github.com/lucasb-eyer/pydensecrf.git")
|
| 12 |
#os.system("pip install argparse")
|
| 13 |
import pydensecrf.densecrf as dcrf
|
| 14 |
from PIL import Image
|