huy00001 commited on
Commit
0065721
·
verified ·
1 Parent(s): 23a6f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -11,12 +11,16 @@ from io import BytesIO
11
  # =======================
12
  # MongoDB setup
13
  # =======================
 
 
14
  client = pymongo.MongoClient(
15
- "mongodb+srv://huyh01480_db_user:OGNNUaT14nlYh2Uu@cluster0.n8pboqq.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"
 
16
  )
17
  db = client["faceDB"]
18
  face_collection = db["faceImg"]
19
 
 
20
  # =======================
21
  # Upload ảnh + lưu MongoDB
22
  # =======================
 
11
  # =======================
12
  # MongoDB setup
13
  # =======================
14
+ import certifi
15
+
16
  client = pymongo.MongoClient(
17
+ "mongodb+srv://username:password@cluster0.n8pboqq.mongodb.net/?retryWrites=true&w=majority",
18
+ tlsCAFile=certifi.where()
19
  )
20
  db = client["faceDB"]
21
  face_collection = db["faceImg"]
22
 
23
+
24
  # =======================
25
  # Upload ảnh + lưu MongoDB
26
  # =======================