Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,10 @@ from transformers import pipeline
|
|
6 |
from huggingface_hub import model_info
|
7 |
import os # must be before setting environment variables
|
8 |
|
9 |
-
os.environ["
|
10 |
-
os.environ["
|
11 |
-
os.environ["HUGGINGFACE_HUB_CACHE"] = "/app/hf_home"
|
12 |
|
13 |
-
os.makedirs("/
|
14 |
-
os.makedirs("/app/hf_home", exist_ok=True)
|
15 |
|
16 |
MODEL_NAME = "tarteel-ai/whisper-base-ar-quran" #this always needs to stay in line 8 :D sorry for the hackiness
|
17 |
lang = "ar"
|
|
|
6 |
from huggingface_hub import model_info
|
7 |
import os # must be before setting environment variables
|
8 |
|
9 |
+
os.environ["HF_HOME"] = "/data/hf_home"
|
10 |
+
os.environ["HUGGINGFACE_HUB_CACHE"] = "/data/hf_home"
|
|
|
11 |
|
12 |
+
os.makedirs("/data/hf_home", exist_ok=True)
|
|
|
13 |
|
14 |
MODEL_NAME = "tarteel-ai/whisper-base-ar-quran" #this always needs to stay in line 8 :D sorry for the hackiness
|
15 |
lang = "ar"
|