Spaces:
Paused
Paused
Update backend/main.py
Browse files- backend/main.py +2 -2
backend/main.py
CHANGED
@@ -76,10 +76,10 @@ socketio_app = socketio.ASGIApp(sio)
|
|
76 |
config = dotenv_values(".env")
|
77 |
|
78 |
# Read connection string from environment vars
|
79 |
-
uri = os.environ['MONGODB_URI']
|
80 |
|
81 |
# Read connection string from .env file
|
82 |
-
|
83 |
|
84 |
# Set transformers cache
|
85 |
os.environ['HF_HOME'] = 'cache/'
|
|
|
76 |
config = dotenv_values(".env")
|
77 |
|
78 |
# Read connection string from environment vars
|
79 |
+
# uri = os.environ['MONGODB_URI']
|
80 |
|
81 |
# Read connection string from .env file
|
82 |
+
uri = config['MONGODB_URI']
|
83 |
|
84 |
# Set transformers cache
|
85 |
os.environ['HF_HOME'] = 'cache/'
|