ankban commited on
Commit
e15fad8
·
verified ·
1 Parent(s): c2469fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -10,6 +10,8 @@ from openai import OpenAI
10
  # Use writable cache for Hugging Face
11
  os.environ["XDG_CACHE_HOME"] = "/tmp/.cache"
12
  os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"
 
 
13
 
14
  # Load Whisper and set OpenAI key
15
  model = WhisperModel("base", compute_type="int8") # Fastest CPU option
 
10
  # Use writable cache for Hugging Face
11
  os.environ["XDG_CACHE_HOME"] = "/tmp/.cache"
12
  os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"
13
+ os.environ["HF_HOME"] = "/tmp/.cache/huggingface"
14
+ os.environ["TRANSFORMERS_CACHE"] = "/tmp/.cache/huggingface"
15
 
16
  # Load Whisper and set OpenAI key
17
  model = WhisperModel("base", compute_type="int8") # Fastest CPU option