donghuna commited on
Commit
9a97756
·
verified ·
1 Parent(s): a095c9c

Update preprocessing.py

Browse files
Files changed (1) hide show
  1. preprocessing.py +0 -9
preprocessing.py CHANGED
@@ -8,15 +8,6 @@ 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)
14
-
15
- # load video file
16
- with open(video_path, "wb") as video_file:
17
- video_file.write(video_bytes)
18
-
19
-
20
  def read_video(video_base64, num_frames=24, target_size=(224, 224)):
21
  video_data = base64.b64decode(video_base64)
22
 
 
8
 
9
  logging.basicConfig(filename='/mnt/data/uploads/logfile-video.log', level=logging.INFO)
10
 
 
 
 
 
 
 
 
 
 
11
  def read_video(video_base64, num_frames=24, target_size=(224, 224)):
12
  video_data = base64.b64decode(video_base64)
13