MISSAOUI commited on
Commit
2b7e35b
·
verified ·
1 Parent(s): fec57f3

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -20,7 +20,7 @@ os.environ["HF_HOME"] = "/tmp/cache"
20
 
21
  @asynccontextmanager
22
  async def lifespan(app: FastAPI):
23
- model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", cache_folder="/tmp/cache")
24
 
25
 
26
  vectorstore = await asyncio.to_thread(
 
20
 
21
  @asynccontextmanager
22
  async def lifespan(app: FastAPI):
23
+ embedding_model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", cache_folder="/tmp/cache")
24
 
25
 
26
  vectorstore = await asyncio.to_thread(