Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ import gc
|
|
13 |
import plotly.express as px
|
14 |
import plotly.io as pio
|
15 |
import pymongo
|
|
|
|
|
16 |
|
17 |
@st.cache_resource
|
18 |
def init_conn():
|
@@ -31,7 +33,7 @@ def init_conn():
|
|
31 |
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/gspread-connection%40model-sheets-connect.iam.gserviceaccount.com"
|
32 |
}
|
33 |
|
34 |
-
client = pymongo.MongoClient("mongodb+srv://multichem:[email protected]/testing_db")
|
35 |
db = client["testing_db"]
|
36 |
|
37 |
gc_con = gspread.service_account_from_dict(credentials, scope)
|
|
|
13 |
import plotly.express as px
|
14 |
import plotly.io as pio
|
15 |
import pymongo
|
16 |
+
import certifi
|
17 |
+
ca = certifi.where()
|
18 |
|
19 |
@st.cache_resource
|
20 |
def init_conn():
|
|
|
33 |
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/gspread-connection%40model-sheets-connect.iam.gserviceaccount.com"
|
34 |
}
|
35 |
|
36 |
+
client = pymongo.MongoClient("mongodb+srv://multichem:[email protected]/testing_db", tlsCAFile=ca)
|
37 |
db = client["testing_db"]
|
38 |
|
39 |
gc_con = gspread.service_account_from_dict(credentials, scope)
|