Skip to content

Commit

Permalink
v2.4.31
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Aug 28, 2024
1 parent 9bd73d9 commit d90a579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phi/embedder/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ def get_embedding(self, text: str) -> List[float]:
logger.warning(e)
return []

def get_embedding_and_usage(self, text: str) -> Tuple[List[float], Dict | None]:
def get_embedding_and_usage(self, text: str) -> Tuple[List[float], Optional[Dict]]:
return super().get_embedding_and_usage(text)
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module = [
"google.*",
"googlesearch.*",
"groq.*",
"huggingface_hub.*",
"kubernetes.*",
"lancedb.*",
"langchain.*",
Expand Down

0 comments on commit d90a579

Please sign in to comment.