Spaces:
Sleeping
Sleeping
Commit ·
babd19d
1
Parent(s): d1ac09a
Fixing Streamlit issue
Browse files123import timefrom datetime import datetimefrom typing import Dict12345678910# put this at the very top of app.py, before importing streamlitimport os, pathlibbase = "/data" if os.path.exists("/data") else "/tmp" # /data = persistent on HF; /tmp = ephemeralos.environ.setdefault("HOME", base)os.environ.setdefault("STREAMLIT_CONFIG_DIR", f"{base}/.streamlit")os.makedirs(os.environ["STREAMLIT_CONFIG_DIR"], exist_ok=True)import timefrom datetime import datetimefrom typing import Dict
src/streamlit_app.py+7