Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files12345678910111213141516171819"""template_st_app."""import os# Set a safe HOME directory for Streamlit to write to, if neededos.environ["HOME"] = "/tmp"os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"# Also fix matplotlib and fontconfig, if neededos.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"os.environ["XDG_CACHE_HOME"] = "/tmp/fontconfig"# Make sure dirs existfor path in ["/tmp/.streamlit", "/tmp/matplotlib", "/tmp/fontconfig"]:os.makedirs(path, exist_ok=True)# Now import your app modulesimport streamlit as st12345"""template_st_app."""# Now import your app modulesimport streamlit as st
src/streamlit_app.py-14