Spaces:
Runtime error
Runtime error
Commit
·
92f0f63
1
Parent(s):
8c78b40
fix spaces
Browse files- response_db.py +3 -3
response_db.py
CHANGED
|
@@ -5,9 +5,9 @@ import os
|
|
| 5 |
class ResponseDb:
|
| 6 |
def __init__(self):
|
| 7 |
# Set up the connection
|
| 8 |
-
mongodb_username
|
| 9 |
-
mongodb_pw
|
| 10 |
-
mongodb_cluster_url
|
| 11 |
self.client = MongoClient(f"mongodb+srv://{mongodb_username}:{mongodb_pw}@{mongodb_cluster_url}/?retryWrites=true&w=majority")
|
| 12 |
self.db = self.client['vqa-game']
|
| 13 |
self.collection = self.db['vqa-game']
|
|
|
|
| 5 |
class ResponseDb:
|
| 6 |
def __init__(self):
|
| 7 |
# Set up the connection
|
| 8 |
+
mongodb_username=os.environ['mongodb_username']
|
| 9 |
+
mongodb_pw=os.environ['mongodb_pw']
|
| 10 |
+
mongodb_cluster_url=os.environ['mongodb_cluster_url']
|
| 11 |
self.client = MongoClient(f"mongodb+srv://{mongodb_username}:{mongodb_pw}@{mongodb_cluster_url}/?retryWrites=true&w=majority")
|
| 12 |
self.db = self.client['vqa-game']
|
| 13 |
self.collection = self.db['vqa-game']
|