Skip to content

Commit

Permalink
Fix import order.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmitsch committed Sep 27, 2023
1 parent c8a3965 commit 2f53147
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spacy_llm/models/langchain/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from ...compat import has_langchain, langchain
from ...registry import registry

from langchain import llms # noqa: F401, isort:skip
try:
from langchain import llms # noqa: F401
except (ImportError, AttributeError):
llms = None


class LangChain:
Expand Down

0 comments on commit 2f53147

Please sign in to comment.