File size: 469 Bytes
55eeb71
 
cba740f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()