Kevin King commited on
Commit
0a27525
·
1 Parent(s): 8611a4b

Set DEEPFACE_HOME environment variable to a writable /tmp directory for cache

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -0
src/streamlit_app.py CHANGED
@@ -1,5 +1,7 @@
1
  import os
2
  import streamlit as st
 
 
3
  import numpy as np
4
  import torch
5
  import whisper
 
1
  import os
2
  import streamlit as st
3
+ # Point the cache directory to the guaranteed writable /tmp folder
4
+ os.environ['DEEPFACE_HOME'] = '/tmp/.deepface'
5
  import numpy as np
6
  import torch
7
  import whisper