2001muhammadumair commited on
Commit
0071fcf
·
verified ·
1 Parent(s): 352feeb

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +6 -0
streamlit_app.py CHANGED
@@ -26,6 +26,12 @@ from langchain.prompts import PromptTemplate
26
  from langchain_core.messages import HumanMessage, SystemMessage
27
  import time
28
  warnings.filterwarnings('ignore')
 
 
 
 
 
 
29
 
30
  # Set Tesseract path (update this path according to your system)
31
  # For Windows: r"C:\Program Files\Tesseract-OCR\tesseract.exe"
 
26
  from langchain_core.messages import HumanMessage, SystemMessage
27
  import time
28
  warnings.filterwarnings('ignore')
29
+ import os
30
+
31
+ # Force Streamlit to use local writable directory for config
32
+ os.environ["STREAMLIT_HOME"] = os.getcwd()
33
+ os.environ["XDG_CONFIG_HOME"] = os.getcwd()
34
+
35
 
36
  # Set Tesseract path (update this path according to your system)
37
  # For Windows: r"C:\Program Files\Tesseract-OCR\tesseract.exe"