VeuReu commited on
Commit
a7c648c
·
verified ·
1 Parent(s): 437b633

Update preprocessing_router.py

Browse files
Files changed (1) hide show
  1. preprocessing_router.py +3 -2
preprocessing_router.py CHANGED
@@ -272,12 +272,13 @@ async def finalize_casting(
272
 
273
  print(voice_clusters)
274
 
275
- AUDIO_BASE_FOLDER = f"/tmp/temp/prueba_ana/voice_clusters/{label}" # Ajusta según tu estructura real
276
-
277
  for v_idx, cluster in enumerate(voice_clusters):
278
  v_name = cluster.get("name", f"Voz_{v_idx}")
 
279
  clips = cluster.get("clips", [])
280
 
 
 
281
  print(f"🔊 Voz {v_idx+1}: {v_name}")
282
  print(f" 🎵 Clips seleccionados ({len(clips)}):")
283
 
 
272
 
273
  print(voice_clusters)
274
 
 
 
275
  for v_idx, cluster in enumerate(voice_clusters):
276
  v_name = cluster.get("name", f"Voz_{v_idx}")
277
+ label = cluster.get("label", v_idx) # <-- aquí definimos label
278
  clips = cluster.get("clips", [])
279
 
280
+ AUDIO_BASE_FOLDER = f"/tmp/temp/prueba_ana/voice_clusters/{label}" # ahora funciona
281
+
282
  print(f"🔊 Voz {v_idx+1}: {v_name}")
283
  print(f" 🎵 Clips seleccionados ({len(clips)}):")
284