Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- 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 |
-
|
| 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(
|