awacke1 commited on
Commit
cba740f
·
1 Parent(s): f1fd42a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -1,3 +1,16 @@
1
  import streamlit as st
2
 
3
- st.write('https://huggingface.co/spaces/awacke1/Hackathon2022/')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ st.write('https://huggingface.co/spaces/awacke1/Hackathon2022/')
4
+
5
+ import streamlit as st
6
+
7
+ @st.experimental_singleton
8
+ def get_everyone_session():
9
+
10
+ # This is for good - til container reboots.
11
+ DB_URL = "https://huggingface.co/spaces/awacke1/Hackathon2022"
12
+ engine = create_engine(DB_URL)
13
+ db_EditUrl = "https://huggingface.co/spaces/awacke1/Hackathon2022/edit/main/app.py"
14
+ return sessionmaker(engine)
15
+
16
+ dbsm = get_db_sessionmaker()