reshav1 commited on
Commit
ca713d9
·
1 Parent(s): 8a279b0
Files changed (1) hide show
  1. App.py +7 -2
App.py CHANGED
@@ -1,9 +1,14 @@
1
  import streamlit as st
2
  from streamlit_option_menu import option_menu
3
  from home import dashboard
4
- import json
5
- import uuid
6
 
 
 
 
 
 
7
  def load_json():
8
  with open("database/data.json") as file:
9
  data = json.load(file)
 
1
  import streamlit as st
2
  from streamlit_option_menu import option_menu
3
  from home import dashboard
4
+ import os
5
+ from pymongo import MongoClient
6
 
7
+
8
+ 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)