Spaces:
Runtime error
Runtime error
debug
Browse files- requirements.txt +1 -1
- utils.py +1 -1
requirements.txt
CHANGED
|
@@ -2,5 +2,5 @@ dnspython==2.2.1
|
|
| 2 |
en_core_web_lg @ https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.3.0/en_core_web_lg-3.3.0.tar.gz
|
| 3 |
newspaper3k==0.2.8
|
| 4 |
newscatcherapi==0.7.1
|
| 5 |
-
pymongo==
|
| 6 |
streamlit-aggrid==0.2.3.post2
|
|
|
|
| 2 |
en_core_web_lg @ https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.3.0/en_core_web_lg-3.3.0.tar.gz
|
| 3 |
newspaper3k==0.2.8
|
| 4 |
newscatcherapi==0.7.1
|
| 5 |
+
pymongo==4.1.1
|
| 6 |
streamlit-aggrid==0.2.3.post2
|
utils.py
CHANGED
|
@@ -32,7 +32,7 @@ def init_connection() -> pymongo.database.Database:
|
|
| 32 |
"""
|
| 33 |
|
| 34 |
# The mongoDB connection string
|
| 35 |
-
connection_string = f'mongodb+srv://{USER}:{PASSWORD}@cluster0.rjiqa.mongodb.net/?retryWrites=true&w=majority'
|
| 36 |
|
| 37 |
# Connect to the client
|
| 38 |
client = MongoClient(connection_string)
|
|
|
|
| 32 |
"""
|
| 33 |
|
| 34 |
# The mongoDB connection string
|
| 35 |
+
connection_string = f'mongodb+srv://{USER}:{PASSWORD}@cluster0.rjiqa.mongodb.net/?retryWrites=true&w=majority&connect=False'
|
| 36 |
|
| 37 |
# Connect to the client
|
| 38 |
client = MongoClient(connection_string)
|