Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import dlib, cv2, os
|
3 |
import numpy as np
|
4 |
import skvideo
|
5 |
import skvideo.io
|
6 |
from tqdm import tqdm
|
7 |
-
|
8 |
-
os.system('git clone https://github.com/facebookresearch/av_hubert.git')
|
9 |
-
|
10 |
-
from avhubert.preparation.align_mouth import landmarks_interpolate, crop_patch, write_video_ffmpeg
|
11 |
from base64 import b64encode
|
12 |
import cv2
|
13 |
import tempfile
|
|
|
1 |
+
import os
|
2 |
+
import sys
|
3 |
+
|
4 |
+
os.system('git clone https://github.com/facebookresearch/av_hubert.git')
|
5 |
+
os.chdir('av_hubert')
|
6 |
+
os.system('git submodule init')
|
7 |
+
os.system('git submodule update')
|
8 |
+
os.chdir('fairseq')
|
9 |
+
os.system('pip install ./')
|
10 |
+
sys.path.append('../avhubert/')
|
11 |
+
|
12 |
import gradio as gr
|
13 |
import dlib, cv2, os
|
14 |
import numpy as np
|
15 |
import skvideo
|
16 |
import skvideo.io
|
17 |
from tqdm import tqdm
|
18 |
+
from preparation.align_mouth import landmarks_interpolate, crop_patch, write_video_ffmpeg
|
|
|
|
|
|
|
19 |
from base64 import b64encode
|
20 |
import cv2
|
21 |
import tempfile
|