khaiphan29 commited on
Commit
59f93f7
·
1 Parent(s): 0b5f433

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -1,7 +1,7 @@
1
  #uvicorn main:app --reload
2
  import os
3
  os.environ['HF_HOME'] = 'src/cache'
4
- # os.environ['TRANSFORMERS_CACHE'] = 'src/cache'
5
 
6
  from fastapi import FastAPI, status
7
  from fastapi.responses import Response, JSONResponse
 
1
  #uvicorn main:app --reload
2
  import os
3
  os.environ['HF_HOME'] = 'src/cache'
4
+ os.environ['SENTENCE_TRANSFORMERS_HOME'] = 'src/cache'
5
 
6
  from fastapi import FastAPI, status
7
  from fastapi.responses import Response, JSONResponse