Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import sys
|
|
|
1 |
+
'''
|
2 |
+
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm
|
3 |
+
|
4 |
+
conda create --name py310 python=3.10
|
5 |
+
conda activate py310
|
6 |
+
pip install ipykernel
|
7 |
+
python -m ipykernel install --user --name py310 --display-name "py310"
|
8 |
+
|
9 |
+
git clone https://huggingface.co/spaces/svjack/LatentSync && cd LatentSync
|
10 |
+
pip install -r requirements.txt
|
11 |
+
pip install spaces gradio huggingface_hub
|
12 |
+
|
13 |
+
mkdir -p ~/.cache/torch/hub/checkpoints
|
14 |
+
ln -s $(pwd)/checkpoints/auxiliary/2DFAN4-cd938726ad.zip ~/.cache/torch/hub/checkpoints/2DFAN4-cd938726ad.zip
|
15 |
+
ln -s $(pwd)/checkpoints/auxiliary/s3fd-619a316812.pth ~/.cache/torch/hub/checkpoints/s3fd-619a316812.pth
|
16 |
+
ln -s $(pwd)/checkpoints/auxiliary/vgg16-397923af.pth ~/.cache/torch/hub/checkpoints/vgg16-397923af.pth
|
17 |
+
|
18 |
+
python app.py
|
19 |
+
'''
|
20 |
+
|
21 |
import gradio as gr
|
22 |
import os
|
23 |
import sys
|