gmedin commited on
Commit
8d7ab12
·
verified ·
1 Parent(s): f57451f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -0
src/streamlit_app.py CHANGED
@@ -5,6 +5,12 @@ import json
5
  from docx import Document
6
  from io import BytesIO
7
 
 
 
 
 
 
 
8
  # --- Page Configuration ---
9
  st.set_page_config(
10
  page_title="Music Lesson Planner",
 
5
  from docx import Document
6
  from io import BytesIO
7
 
8
+ # --- Set Streamlit environment variables for HuggingFace compatibility ---
9
+ # This helps prevent permission errors related to Streamlit's internal file operations
10
+ # and ensures it doesn't try to write to restricted directories.
11
+ os.environ["STREAMLIT_BROWSER_GATHER_USAGE_STATS"] = "false"
12
+ os.environ["STREAMLIT_SERVER_ENABLE_ARROW_IPC"] = "false"
13
+
14
  # --- Page Configuration ---
15
  st.set_page_config(
16
  page_title="Music Lesson Planner",