Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from loadimg import load_img
|
3 |
#import spaces
|
|
|
1 |
+
'''
|
2 |
+
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm
|
3 |
+
|
4 |
+
# Clone this repository
|
5 |
+
git clone https://huggingface.co/spaces/svjack/video-background-removal
|
6 |
+
|
7 |
+
# Go into the repository
|
8 |
+
cd video-background-removal
|
9 |
+
|
10 |
+
### Install dependencies ###
|
11 |
+
conda create --name video python=3.10
|
12 |
+
conda activate video
|
13 |
+
|
14 |
+
# Install ipykernel and add the environment to Jupyter
|
15 |
+
pip install ipykernel
|
16 |
+
python -m ipykernel install --user --name video --display-name "video"
|
17 |
+
|
18 |
+
pip install -r requirements.txt
|
19 |
+
|
20 |
+
|
21 |
+
python app.py
|
22 |
+
'''
|
23 |
+
|
24 |
+
|
25 |
import gradio as gr
|
26 |
from loadimg import load_img
|
27 |
#import spaces
|