benjolo commited on
Commit
358ece1
1 Parent(s): 58ec63d

Update backend/main.py

Browse files
Files changed (1) hide show
  1. 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
- # uri = config['MONGODB_URI']
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/'