Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,33 +1,3 @@
|
|
1 |
import os
|
2 |
-
import sys
|
3 |
-
|
4 |
os.system('git clone https://github.com/facebookresearch/av_hubert.git')
|
5 |
-
os.
|
6 |
-
os.system('git submodule init')
|
7 |
-
os.system('git submodule update')
|
8 |
-
os.chdir('fairseq')
|
9 |
-
os.system('pip install ./')
|
10 |
-
os.system('pip install sentencepiece')
|
11 |
-
os.system('pip install python_speech_features')
|
12 |
-
os.system('pip install scikit-video')
|
13 |
-
os.system('pip install transformers')
|
14 |
-
os.chdir('../')
|
15 |
-
|
16 |
-
print(os.listdir())
|
17 |
-
sys.path.append('avhubert')
|
18 |
-
|
19 |
-
import gradio as gr
|
20 |
-
import dlib, cv2, os
|
21 |
-
import numpy as np
|
22 |
-
import skvideo
|
23 |
-
import skvideo.io
|
24 |
-
from tqdm import tqdm
|
25 |
-
from preparation.align_mouth import landmarks_interpolate, crop_patch, write_video_ffmpeg
|
26 |
-
from base64 import b64encode
|
27 |
-
import cv2
|
28 |
-
import tempfile
|
29 |
-
from argparse import Namespace
|
30 |
-
import fairseq
|
31 |
-
from fairseq import checkpoint_utils, options, tasks, utils
|
32 |
-
from fairseq.dataclass.configs import GenerationConfig
|
33 |
-
import torch
|
|
|
1 |
import os
|
|
|
|
|
2 |
os.system('git clone https://github.com/facebookresearch/av_hubert.git')
|
3 |
+
print(os.listdir())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|