Spaces:
Sleeping
Sleeping
kamalaak
commited on
Commit
·
e952b1e
1
Parent(s):
afc6e3d
Fix Streamlit permission issue on Hugging Face Spaces
Browse files- .streamlit/config.toml +4 -0
- streamlit_app.py +2 -0
.streamlit/config.toml
CHANGED
@@ -1,2 +1,6 @@
|
|
|
|
|
|
|
|
|
|
1 |
[browser]
|
2 |
gatherUsageStats = false
|
|
|
1 |
+
[general]
|
2 |
+
# Disable metrics that cause writing to '/'
|
3 |
+
disableWatchdogWarning = true
|
4 |
+
|
5 |
[browser]
|
6 |
gatherUsageStats = false
|
streamlit_app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
from agentic_handler import run_agenticseek
|
3 |
from utils import generate_pdf
|
|
|
|
|
4 |
|
5 |
st.title("📝 TNPSC தமிழில் உதவியாளர்")
|
6 |
|
|
|
1 |
import streamlit as st
|
2 |
from agentic_handler import run_agenticseek
|
3 |
from utils import generate_pdf
|
4 |
+
import os
|
5 |
+
os.environ["STREAMLIT_HOME"] = os.getcwd()
|
6 |
|
7 |
st.title("📝 TNPSC தமிழில் உதவியாளர்")
|
8 |
|