NightPrince commited on
Commit
5a367a5
·
verified ·
1 Parent(s): 542e144

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,8 +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["TRANSFORMERS_CACHE"] = "/app/cache"
10
  os.environ["HF_HOME"] = "/app/hf_home"
 
11
 
12
  MODEL_NAME = "tarteel-ai/whisper-base-ar-quran" #this always needs to stay in line 8 :D sorry for the hackiness
13
  lang = "ar"
 
6
  from huggingface_hub import model_info
7
  import os # must be before setting environment variables
8
 
9
+ import os
10
  os.environ["TRANSFORMERS_CACHE"] = "/app/cache"
11
  os.environ["HF_HOME"] = "/app/hf_home"
12
+ os.environ["HUGGINGFACE_HUB_CACHE"] = "/app/cache/huggingface"
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"