Hackathon2022 / app.py
awacke1's picture
Update app.py
cba740f
raw
history blame
469 Bytes
import streamlit as st
st.write('https://huggingface.co/spaces/awacke1/Hackathon2022/')
import streamlit as st
@st.experimental_singleton
def get_everyone_session():
# This is for good - til container reboots.
DB_URL = "https://huggingface.co/spaces/awacke1/Hackathon2022"
engine = create_engine(DB_URL)
db_EditUrl = "https://huggingface.co/spaces/awacke1/Hackathon2022/edit/main/app.py"
return sessionmaker(engine)
dbsm = get_db_sessionmaker()