Spaces:
Sleeping
Sleeping
Update app.py
#1
by
CosmoAI
- opened
app.py
CHANGED
@@ -9,10 +9,11 @@ if 'user' not in st.session_state:
|
|
9 |
st.session_state['user'] = 'visitor'
|
10 |
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
16 |
|
17 |
def login():
|
18 |
st.title("Login")
|
|
|
9 |
st.session_state['user'] = 'visitor'
|
10 |
|
11 |
|
12 |
+
uri = os.environ["MONGO_CONNECTION_STRING"]
|
13 |
+
|
14 |
+
client = MongoClient(uri, tlsCertificateKeyFile="cert.pem")
|
15 |
+
|
16 |
+
db = client[""]
|
17 |
|
18 |
def login():
|
19 |
st.title("Login")
|