Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import tempfile
|
|
| 12 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 13 |
|
| 14 |
#Chemin local de téléchargement des fichiers (il faut s'assurer que le dossier existe)
|
| 15 |
-
LOCAL_DOWNLOAD_PATH = os.path.dirname(
|
| 16 |
# Télécharger le script d'inférence
|
| 17 |
repo_id = "dofbi/galsenai-xtts-v2-wolof-inference"
|
| 18 |
inference_file = hf_hub_download(repo_id=repo_id, filename="inference.py", local_dir=LOCAL_DOWNLOAD_PATH)
|
|
|
|
| 12 |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 13 |
|
| 14 |
#Chemin local de téléchargement des fichiers (il faut s'assurer que le dossier existe)
|
| 15 |
+
LOCAL_DOWNLOAD_PATH = os.path.dirname(os.path.abspath(__file__)) # Utiliser le chemin du script
|
| 16 |
# Télécharger le script d'inférence
|
| 17 |
repo_id = "dofbi/galsenai-xtts-v2-wolof-inference"
|
| 18 |
inference_file = hf_hub_download(repo_id=repo_id, filename="inference.py", local_dir=LOCAL_DOWNLOAD_PATH)
|