HUANG-Stephanie commited on
Commit
57efe4c
1 Parent(s): f80c697

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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(CONNECTION_STRING)
 
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']