Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,15 @@ import numpy as np
|
|
4 |
import skvideo
|
5 |
import skvideo.io
|
6 |
from tqdm import tqdm
|
|
|
|
|
|
|
7 |
from avhubert.preparation.align_mouth import landmarks_interpolate, crop_patch, write_video_ffmpeg
|
8 |
-
from
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
14 |
+
from argparse import Namespace
|
15 |
+
import fairseq
|
16 |
+
from fairseq import checkpoint_utils, options, tasks, utils
|
17 |
+
from fairseq.dataclass.configs import GenerationConfig
|
18 |
+
import torch
|