Skip to content

Commit

Permalink
Merge pull request theroyallab#184 from SecretiveShell/Infinity-Embed…
Browse files Browse the repository at this point in the history
…-TODO

Complete conditional infinity import TODO
  • Loading branch information
bdashore3 authored Sep 5, 2024
2 parents 03ff472 + 42a42ca commit 8524999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/infinity/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from common.utils import unwrap

# Conditionally import infinity to sidestep its logger
# TODO: Make this prettier
has_infinity_emb: bool = False
try:
from infinity_emb import EngineArgs, AsyncEmbeddingEngine

has_infinity_emb = True
except ImportError:
has_infinity_emb = False
pass


class InfinityContainer:
Expand Down

0 comments on commit 8524999

Please sign in to comment.