RameshJ commited on
Commit
6f317bd
·
verified ·
1 Parent(s): 2f7a682

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1,14 +1,11 @@
1
  import os
2
- import streamlit as st
3
 
4
- # Manually override streamlit's default config directory
5
  os.environ["XDG_CONFIG_HOME"] = "/tmp"
6
  os.environ["STREAMLIT_HOME"] = "/tmp"
7
-
8
- # Streamlit tries to write telemetry info to ~/.streamlit — force it to /tmp
9
  os.makedirs("/tmp/.streamlit", exist_ok=True)
10
 
11
-
12
  import pandas as pd
13
  from ocr_llm_utils import run_ocr_with_gcv, extract_table_from_text, extract_markdown_table
14
  import tempfile
 
1
  import os
 
2
 
3
+ # Force Streamlit to use a writable config directory
4
  os.environ["XDG_CONFIG_HOME"] = "/tmp"
5
  os.environ["STREAMLIT_HOME"] = "/tmp"
 
 
6
  os.makedirs("/tmp/.streamlit", exist_ok=True)
7
 
8
+ import streamlit as st
9
  import pandas as pd
10
  from ocr_llm_utils import run_ocr_with_gcv, extract_table_from_text, extract_markdown_table
11
  import tempfile