NavyaNayer commited on
Commit
ffcb0ab
·
verified ·
1 Parent(s): 0842585

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -1
src/streamlit_app.py CHANGED
@@ -1,5 +1,7 @@
1
  import os
2
- os.environ["HF_HOME"] = "/home/user/huggingface"
 
 
3
 
4
  import streamlit as st
5
  import torch
 
1
  import os
2
+ # Force Hugging Face to use a writable directory
3
+ os.environ["HF_HOME"] = "/tmp/huggingface"
4
+ os.environ["TRANSFORMERS_CACHE"] = "/tmp/hf_cache"
5
 
6
  import streamlit as st
7
  import torch