SimpleFrog commited on
Commit
458a087
·
verified ·
1 Parent(s): 9f2e273

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ import librosa
16
  import numpy as np
17
  import evaluate
18
  import tempfile
19
- from huggingface_hub import hf_hub_download
20
 
21
  st.title("📊 Évaluation WER d'un modèle Whisper")
22
  st.markdown("Ce Space permet d'évaluer la performance WER d'un modèle Whisper sur un dataset audio.")
@@ -66,7 +66,7 @@ if start_eval:
66
  results = []
67
 
68
  # Téléchargement explicite du dossier audio (chemin local vers chaque fichier)
69
- repo_local_path = hf_hub_download(dataset_link, repo_type="dataset", token=hf_token)
70
 
71
  for example in dataset:
72
  try:
 
16
  import numpy as np
17
  import evaluate
18
  import tempfile
19
+ from huggingface_hub import snapshot_download
20
 
21
  st.title("📊 Évaluation WER d'un modèle Whisper")
22
  st.markdown("Ce Space permet d'évaluer la performance WER d'un modèle Whisper sur un dataset audio.")
 
66
  results = []
67
 
68
  # Téléchargement explicite du dossier audio (chemin local vers chaque fichier)
69
+ repo_local_path = snapshot_download(repo_id=dataset_link, repo_type="dataset", token=hf_token)
70
 
71
  for example in dataset:
72
  try: