Spaces:
Sleeping
Sleeping
commit 3
Browse files
app.py
CHANGED
@@ -53,8 +53,10 @@ def extract_audio(video_path, audio_path):
|
|
53 |
|
54 |
@st.cache_resource(show_spinner="Loading model...")
|
55 |
def load_model():
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
classifier = EncoderClassifier.from_hparams(
|
60 |
source=MODEL_ID,
|
|
|
53 |
|
54 |
@st.cache_resource(show_spinner="Loading model...")
|
55 |
def load_model():
|
56 |
+
model_path = "/data/accent-id-model"
|
57 |
+
|
58 |
+
# ✅ Ensure the /data directory exists and is writable
|
59 |
+
os.makedirs(model_path, exist_ok=True)
|
60 |
|
61 |
classifier = EncoderClassifier.from_hparams(
|
62 |
source=MODEL_ID,
|