fix(sentiment_analyzer): streamlit and torch conflict

This commit is contained in:
ghmark675
2025-11-10 19:17:06 +08:00
committed by 666ghj
parent 92482a416e
commit b09a13ec6e

View File

@@ -13,6 +13,7 @@ try:
import torch
TORCH_AVAILABLE = True
torch.classes.__path__ = []
except ImportError:
torch = None # type: ignore
TORCH_AVAILABLE = False