processoptimisationsystem commited on
Commit
c33506a
·
verified ·
1 Parent(s): 30b5c8e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -3
src/streamlit_app.py CHANGED
@@ -9,10 +9,9 @@ In the meantime, below is an example of what you can do with just a few lines of
9
  """
10
  import os
11
 
12
- # Fix for Hugging Face permission error and torch watcher bug
13
- os.environ["STREAMLIT_HOME"] = "./.streamlit"
14
  os.environ["STREAMLIT_WATCH_DISABLE"] = "true"
15
- os.makedirs("./.streamlit", exist_ok=True)
16
 
17
  import streamlit as st
18
  import torch
 
9
  """
10
  import os
11
 
12
+ # Fix for Hugging Face: use safe temp path and disable file watcher
13
+ os.environ["STREAMLIT_HOME"] = "/tmp/.streamlit"
14
  os.environ["STREAMLIT_WATCH_DISABLE"] = "true"
 
15
 
16
  import streamlit as st
17
  import torch