Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Nov 3, 2023
1 parent a8e4707 commit 1142ace
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ebd-all-minilm/build-aarch64-apple-darwin.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -e
export VERSION=1.0.4
export VERSION=1.0.5

test -f venv/bin/activate || python -m venv venv
source venv/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion ebd-all-minilm/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
export VERSION=1.0.4
export VERSION=1.0.5
source "$(dirname "${BASH_SOURCE[0]}")/../utils.sh"

build_cpu ghcr.io/premai-io/embeddings-all-minilm-l6-v2-cpu all-MiniLM-L6-v2 ${@:1}
Expand Down
5 changes: 1 addition & 4 deletions ebd-all-minilm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ def embeddings(cls, texts):
@classmethod
def get_model(cls, model_path):
if cls.model is None:
cls.model = SentenceTransformer(
model_path,
device=os.getenv("DEVICE", "cpu"),
)
cls.model = SentenceTransformer(model_path, device=os.getenv("DEVICE", "cpu"))
return cls.model

0 comments on commit 1142ace

Please sign in to comment.