Commit
·
f1d9c38
1
Parent(s):
8a14cfe
deploy
Browse files- services/embedding.py +1 -1
services/embedding.py
CHANGED
|
@@ -11,7 +11,7 @@ os.environ["TRANSFORMERS_CACHE"] = "/app/cache"
|
|
| 11 |
os.environ["HF_HOME"] = "/app/cache"
|
| 12 |
|
| 13 |
# Load model with custom cache directory
|
| 14 |
-
model = SentenceTransformer("clip-ViT-B-32"
|
| 15 |
|
| 16 |
def get_text_embedding(text: str) -> Optional[List[float]]:
|
| 17 |
try:
|
|
|
|
| 11 |
os.environ["HF_HOME"] = "/app/cache"
|
| 12 |
|
| 13 |
# Load model with custom cache directory
|
| 14 |
+
model = SentenceTransformer("clip-ViT-B-32")
|
| 15 |
|
| 16 |
def get_text_embedding(text: str) -> Optional[List[float]]:
|
| 17 |
try:
|