salal commited on
Commit
20fd76d
Β·
1 Parent(s): 16da0af
Files changed (1) hide show
  1. services/video_service.py +2 -1
services/video_service.py CHANGED
@@ -6,7 +6,7 @@ from Models.Model import predict
6
 
7
  # ─── Config ───────────────────────────────────────────────────────────────────
8
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
- UPLOAD_FOLDER = os.path.join(BASE_DIR, "buffer_videos")
10
  os.makedirs(UPLOAD_FOLDER, exist_ok=True)
11
 
12
  BATCH_SIZE = 5
@@ -23,6 +23,7 @@ last_run = time.time()
23
 
24
  # ─── Save uploaded video to disk ──────────────────────────────────────────────
25
  def save_video(user_id, meeting_id, video_file):
 
26
  file_path = os.path.join(UPLOAD_FOLDER, f"{user_id}_{meeting_id}.mp4")
27
  video_file.save(file_path)
28
  video_buffer[user_id].append(file_path)
 
6
 
7
  # ─── Config ───────────────────────────────────────────────────────────────────
8
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9
+ UPLOAD_FOLDER = "/app/buffer_videos"
10
  os.makedirs(UPLOAD_FOLDER, exist_ok=True)
11
 
12
  BATCH_SIZE = 5
 
23
 
24
  # ─── Save uploaded video to disk ──────────────────────────────────────────────
25
  def save_video(user_id, meeting_id, video_file):
26
+ print(f"πŸ“ UPLOAD_FOLDER = {UPLOAD_FOLDER}")
27
  file_path = os.path.join(UPLOAD_FOLDER, f"{user_id}_{meeting_id}.mp4")
28
  video_file.save(file_path)
29
  video_buffer[user_id].append(file_path)