Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ import soundfile as sf
|
|
13 |
import torch
|
14 |
import torchaudio
|
15 |
|
16 |
-
from huggingface_hub import hf_hub_download
|
17 |
|
18 |
# Ваши зависимости / локальные импорты
|
19 |
from ruaccent import RUAccent
|
@@ -96,9 +96,6 @@ def hf_download_file(repo_id: str, filename: str, token: str = None):
|
|
96 |
p = hf_hub_download(repo_id=repo_id, filename=filename, token=token, repo_type="model")
|
97 |
print(" ->", p)
|
98 |
return p
|
99 |
-
except HFValidationError as e:
|
100 |
-
print("HFValidationError:", e)
|
101 |
-
raise
|
102 |
except Exception as e:
|
103 |
print("Download error:", e)
|
104 |
raise
|
|
|
13 |
import torch
|
14 |
import torchaudio
|
15 |
|
16 |
+
from huggingface_hub import hf_hub_download
|
17 |
|
18 |
# Ваши зависимости / локальные импорты
|
19 |
from ruaccent import RUAccent
|
|
|
96 |
p = hf_hub_download(repo_id=repo_id, filename=filename, token=token, repo_type="model")
|
97 |
print(" ->", p)
|
98 |
return p
|
|
|
|
|
|
|
99 |
except Exception as e:
|
100 |
print("Download error:", e)
|
101 |
raise
|