aryanj10 commited on
Commit
9de1da3
·
1 Parent(s): 12f98b1

added permisions

Browse files
Files changed (2) hide show
  1. requirements.txt +0 -2
  2. src/streamlit_app.py +2 -0
requirements.txt CHANGED
@@ -2,8 +2,6 @@ torch>=2.0.0
2
  torchvision>=0.15.0
3
  tqdm
4
  scikit-learn
5
- matplotlib
6
- seaborn
7
  torchcam
8
  Pillow
9
  numpy
 
2
  torchvision>=0.15.0
3
  tqdm
4
  scikit-learn
 
 
5
  torchcam
6
  Pillow
7
  numpy
src/streamlit_app.py CHANGED
@@ -6,8 +6,10 @@ os.environ["STREAMLIT_WATCH_SYSTEM_FOLDERS"] = "false"
6
  # 🔒 Fix Hugging Face & cache permission errors on Hugging Face Spaces
7
  os.environ["HF_HOME"] = "/tmp/huggingface"
8
  os.environ["XDG_CACHE_HOME"] = "/tmp/.cache"
 
9
  os.makedirs("/tmp/huggingface", exist_ok=True)
10
  os.makedirs("/tmp/.cache", exist_ok=True)
 
11
 
12
  import streamlit as st
13
  import torch
 
6
  # 🔒 Fix Hugging Face & cache permission errors on Hugging Face Spaces
7
  os.environ["HF_HOME"] = "/tmp/huggingface"
8
  os.environ["XDG_CACHE_HOME"] = "/tmp/.cache"
9
+ os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
10
  os.makedirs("/tmp/huggingface", exist_ok=True)
11
  os.makedirs("/tmp/.cache", exist_ok=True)
12
+ os.makedirs("/tmp/.streamlit", exist_ok=True)
13
 
14
  import streamlit as st
15
  import torch