Update app.py
Browse files
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 = "
|
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)
|