Update preprocessing.py
Browse files- preprocessing.py +1 -5
preprocessing.py
CHANGED
@@ -4,14 +4,10 @@ from torchvision import transforms
|
|
4 |
import av
|
5 |
import logging
|
6 |
import base64
|
|
|
7 |
|
8 |
logging.basicConfig(filename='/mnt/data/uploads/logfile-video.log', level=logging.INFO)
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
def get_video_file(video_base64, video_path):
|
16 |
# Base64 decoding
|
17 |
video_bytes = base64.b64decode(video_base64)
|
|
|
4 |
import av
|
5 |
import logging
|
6 |
import base64
|
7 |
+
import io
|
8 |
|
9 |
logging.basicConfig(filename='/mnt/data/uploads/logfile-video.log', level=logging.INFO)
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
def get_video_file(video_base64, video_path):
|
12 |
# Base64 decoding
|
13 |
video_bytes = base64.b64decode(video_base64)
|