Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
from ocr_llm_utils import run_ocr_with_gcv, extract_table_from_text, extract_markdown_table
|
| 4 |
import tempfile
|
|
|
|
| 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
|