CosmoAI commited on
Commit
d4b9859
1 Parent(s): dc2a02b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -9,10 +9,11 @@ if 'user' not in st.session_state:
9
  st.session_state['user'] = 'visitor'
10
 
11
 
12
- def load_json():
13
- with open("database/data.json") as file:
14
- data = json.load(file)
15
- return data
 
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")