vumichien commited on
Commit
0498130
1 Parent(s): 4fc759d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -31
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.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
- 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())