Skip to content

Commit 7a0bed5

Browse files
handling pipeline issue
1 parent 5109f32 commit 7a0bed5

File tree

1 file changed

+2
-0
lines changed
  • libs/langchain/langchain/evaluation/hallucination

1 file changed

+2
-0
lines changed

libs/langchain/langchain/evaluation/hallucination/detector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
if TYPE_CHECKING:
44
from transformers import pipeline as PipelineType
55

6+
7+
pipeline: "PipelineType" | None = None # type: ignore
68
# Lazy import for runtime
79
try:
810
from transformers import pipeline

0 commit comments

Comments
 (0)