Spaces:
Sleeping
Sleeping
Michael Rey
commited on
Commit
·
c311804
1
Parent(s):
f36ada3
fixing issues again
Browse files- src/.streamlit/config.toml +0 -10
- src/streamlit_app.py +4 -1
src/.streamlit/config.toml
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
[global]
|
2 |
-
disableUsageStats = true
|
3 |
-
|
4 |
-
[general]
|
5 |
-
disableUsageStats = true
|
6 |
-
|
7 |
-
[server]
|
8 |
-
headless = true
|
9 |
-
port = 7860
|
10 |
-
enableCORS = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/streamlit_app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
import os
|
2 |
-
#
|
|
|
|
|
|
|
3 |
|
4 |
import sys
|
5 |
import streamlit as st
|
|
|
1 |
import os
|
2 |
+
# Redirect .streamlit config and cache to /tmp where Streamlit has permission
|
3 |
+
os.environ["STREAMLIT_HOME"] = "/tmp"
|
4 |
+
os.environ["XDG_CONFIG_HOME"] = "/tmp"
|
5 |
+
os.environ["XDG_CACHE_HOME"] = "/tmp"
|
6 |
|
7 |
import sys
|
8 |
import streamlit as st
|