Skip to content

Commit

Permalink
Merge pull request #9 from aurelio-labs/james/remove-hf-refs
Browse files Browse the repository at this point in the history
bug fix missing encoder
  • Loading branch information
italianconcerto authored Nov 13, 2023
2 parents 372c23f + f67e5d2 commit 423c38a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions semantic_router/encoders/huggingface.py

This file was deleted.

4 changes: 1 addition & 3 deletions semantic_router/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from semantic_router.encoders import (
BaseEncoder,
CohereEncoder,
HuggingFaceEncoder,
OpenAIEncoder,
)

Expand All @@ -18,7 +17,6 @@ class Decision(BaseModel):


class EncoderType(Enum):
HUGGINGFACE = "huggingface"
OPENAI = "openai"
COHERE = "cohere"

Expand All @@ -33,7 +31,7 @@ def __init__(self, type: str, name: str):
self.type = EncoderType(type)
self.name = name
if self.type == EncoderType.HUGGINGFACE:
self.model = HuggingFaceEncoder(name)
raise NotImplementedError
elif self.type == EncoderType.OPENAI:
self.model = OpenAIEncoder(name)
elif self.type == EncoderType.COHERE:
Expand Down

0 comments on commit 423c38a

Please sign in to comment.