benjolo commited on
Commit
5bf62d2
1 Parent(s): bab3bed

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +2 -1
backend/main.py CHANGED
@@ -82,7 +82,8 @@ config = dotenv_values(".env")
82
  uri = config['MONGODB_URI']
83
 
84
  # Set transformers cache
85
- # os.environ['HF_HOME'] = './.cache/'
 
86
 
87
  # MongoDB Connection Lifespan Events
88
  @asynccontextmanager
 
82
  uri = config['MONGODB_URI']
83
 
84
  # Set transformers cache
85
+ os.environ['HF_HOME'] = './.cache/'
86
+ os.environ['SENTENCE_TRANSFORMERS_HOME'] = './.cache'
87
 
88
  # MongoDB Connection Lifespan Events
89
  @asynccontextmanager