Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -170,10 +170,11 @@ async def recommendation(file: UploadFile = File(...), k: int = 10):
|
|
170 |
def get_database():
|
171 |
|
172 |
# Provide the mongodb atlas url to connect python to mongodb using pymongo
|
173 |
-
CONNECTION_STRING = "mongodb://localhost:27017"
|
174 |
|
175 |
# Create a connection using MongoClient. You can import MongoClient or use pymongo.MongoClient
|
176 |
-
client = MongoClient(
|
|
|
177 |
|
178 |
# Create the database for our example (we will use the same database throughout the tutorial
|
179 |
return client['cvquest-colpali']
|
|
|
170 |
def get_database():
|
171 |
|
172 |
# Provide the mongodb atlas url to connect python to mongodb using pymongo
|
173 |
+
# CONNECTION_STRING = "mongodb://localhost:27017"
|
174 |
|
175 |
# Create a connection using MongoClient. You can import MongoClient or use pymongo.MongoClient
|
176 |
+
client = MongoClient('localhost', 27017)
|
177 |
+
|
178 |
|
179 |
# Create the database for our example (we will use the same database throughout the tutorial
|
180 |
return client['cvquest-colpali']
|