From b09a13ec6ec1ed5eef18a855be3b7e88dc2044ed Mon Sep 17 00:00:00 2001 From: ghmark675 Date: Mon, 10 Nov 2025 19:17:06 +0800 Subject: [PATCH] fix(sentiment_analyzer): streamlit and torch conflict --- InsightEngine/tools/sentiment_analyzer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InsightEngine/tools/sentiment_analyzer.py b/InsightEngine/tools/sentiment_analyzer.py index baf683a..aedd979 100644 --- a/InsightEngine/tools/sentiment_analyzer.py +++ b/InsightEngine/tools/sentiment_analyzer.py @@ -13,6 +13,7 @@ try: import torch TORCH_AVAILABLE = True + torch.classes.__path__ = [] except ImportError: torch = None # type: ignore TORCH_AVAILABLE = False