Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,11 @@
|
|
| 1 |
import os
|
| 2 |
-
import streamlit as st
|
| 3 |
|
| 4 |
-
#
|
| 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
|