CosmoAI commited on
Commit
4502c21
·
1 Parent(s): 3438a57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,12 +3,13 @@ from streamlit_option_menu import option_menu
3
  import json
4
  from Home import dashboard
5
  import pymongo
 
6
 
7
-
8
 
9
  from pymongo.mongo_client import MongoClient
10
 
11
- uri = "mongodb+srv://new-userr:[email protected]/?retryWrites=true&w=majority"
12
 
13
  # Create a new client and connect to the server
14
  client = MongoClient(uri)
 
3
  import json
4
  from Home import dashboard
5
  import pymongo
6
+ from python-dotenv import dotenv
7
 
8
+ load_dotenv()
9
 
10
  from pymongo.mongo_client import MongoClient
11
 
12
+ uri = "MONGO_CONNECTION_STRING"
13
 
14
  # Create a new client and connect to the server
15
  client = MongoClient(uri)