kushagrasharma-13 commited on
Commit
65c1327
·
verified ·
1 Parent(s): b0e2ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import re
2
  import cv2
3
  import time
@@ -8,7 +9,7 @@ import tensorflow as tf
8
  from pymongo import MongoClient
9
 
10
  def load_data():
11
- client = MongoClient("mongodb+srv://kushagrasharma_13:NLhYfalYgzfldUCE@cluster0.gv2j8q5.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")
12
  db = client['medical-app-auth']
13
  collection = db['login-data']
14
  brain_tumor_model = tf.keras.models.load_model('models/brain_tumor.h5')
 
1
+ import os
2
  import re
3
  import cv2
4
  import time
 
9
  from pymongo import MongoClient
10
 
11
  def load_data():
12
+ client = MongoClient(os.environ.get("MONGODB_URL"))
13
  db = client['medical-app-auth']
14
  collection = db['login-data']
15
  brain_tumor_model = tf.keras.models.load_model('models/brain_tumor.h5')