kushagrasharma-13
commited on
Update app.py
Browse files
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(
|
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')
|