VeuReu commited on
Commit
812c8de
·
verified ·
1 Parent(s): b80c506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -357,16 +357,12 @@ def identify_speaker(wav_file: str, voice_col: List[Dict[str, Any]]) -> Dict[str
357
  voice_embedding = voice_embedder(wav_file)
358
  voice_col = json.loads(voice_col)
359
 
360
- print("Identificar personajes")
361
- print(voice_col)
362
-
363
  identity = "Desconegut"
364
  knn = []
365
 
366
  if voice_col and voice_embedding is not None:
367
  try:
368
  num_embeddings = len(voice_col)
369
- print(num_embeddings)
370
 
371
  if num_embeddings < 1:
372
  knn = []
 
357
  voice_embedding = voice_embedder(wav_file)
358
  voice_col = json.loads(voice_col)
359
 
 
 
 
360
  identity = "Desconegut"
361
  knn = []
362
 
363
  if voice_col and voice_embedding is not None:
364
  try:
365
  num_embeddings = len(voice_col)
 
366
 
367
  if num_embeddings < 1:
368
  knn = []