VeuReu commited on
Commit
9da3aaf
·
verified ·
1 Parent(s): 0fa690a

Upload 2 files

Browse files
Files changed (1) hide show
  1. api.py +8 -8
api.py CHANGED
@@ -114,11 +114,11 @@ async def process_video(
114
  async def create_initial_casting(
115
  background_tasks: BackgroundTasks,
116
  video: UploadFile = File(...),
117
- max_groups: int = Form(5),
118
- min_cluster_size: int = Form(3),
119
- voice_max_groups: int = Form(5),
120
- voice_min_cluster_size: int = Form(3),
121
- max_frames: int = Form(100),
122
  ):
123
  """
124
  Crea un job para procesar el vídeo de forma asíncrona usando clustering jerárquico.
@@ -726,9 +726,9 @@ def serve_scene_file(video_name: str, scene_id: str, filename: str):
726
  @app.post("/detect_scenes")
727
  async def detect_scenes(
728
  video: UploadFile = File(...),
729
- max_groups: int = Form(5),
730
- min_cluster_size: int = Form(3),
731
- frame_interval_sec: float = Form(0.5),
732
  ):
733
  """
734
  Detecta clústers d'escenes mitjançant clustering jeràrquic d'histogrames de color.
 
114
  async def create_initial_casting(
115
  background_tasks: BackgroundTasks,
116
  video: UploadFile = File(...),
117
+ max_groups: int = Form(default=5),
118
+ min_cluster_size: int = Form(default=3),
119
+ voice_max_groups: int = Form(default=5),
120
+ voice_min_cluster_size: int = Form(default=3),
121
+ max_frames: int = Form(default=100),
122
  ):
123
  """
124
  Crea un job para procesar el vídeo de forma asíncrona usando clustering jerárquico.
 
726
  @app.post("/detect_scenes")
727
  async def detect_scenes(
728
  video: UploadFile = File(...),
729
+ max_groups: int = Form(default=5),
730
+ min_cluster_size: int = Form(default=3),
731
+ frame_interval_sec: float = Form(default=0.5),
732
  ):
733
  """
734
  Detecta clústers d'escenes mitjançant clustering jeràrquic d'histogrames de color.