Spaces:
Runtime error
Runtime error
khaiphan29
commited on
Commit
·
59f93f7
1
Parent(s):
0b5f433
Upload folder using huggingface_hub
Browse files
main.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#uvicorn main:app --reload
|
2 |
import os
|
3 |
os.environ['HF_HOME'] = 'src/cache'
|
4 |
-
|
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
|