Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -4
src/streamlit_app.py
CHANGED
|
@@ -6,11 +6,11 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
| 6 |
from langchain.chains import LLMChain
|
| 7 |
import os
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
os.environ["STREAMLIT_HOME"] = "/
|
| 11 |
-
os.environ["STREAMLIT_CACHE_DIR"] = "/
|
| 12 |
|
| 13 |
-
os.makedirs("/
|
| 14 |
|
| 15 |
|
| 16 |
def extract_text_from_docx(uploaded_file):
|
|
|
|
| 6 |
from langchain.chains import LLMChain
|
| 7 |
import os
|
| 8 |
|
| 9 |
+
# Force Streamlit to use a writable directory
|
| 10 |
+
os.environ["STREAMLIT_HOME"] = "/home/user/app/.streamlit"
|
| 11 |
+
os.environ["STREAMLIT_CACHE_DIR"] = "/home/user/app/.streamlit/cache"
|
| 12 |
|
| 13 |
+
os.makedirs("/home/user/app/.streamlit/cache", exist_ok=True)
|
| 14 |
|
| 15 |
|
| 16 |
def extract_text_from_docx(uploaded_file):
|