fix(sentiment_analyzer): streamlit and torch conflict
This commit is contained in:
@@ -13,6 +13,7 @@ try:
|
||||
import torch
|
||||
|
||||
TORCH_AVAILABLE = True
|
||||
torch.classes.__path__ = []
|
||||
except ImportError:
|
||||
torch = None # type: ignore
|
||||
TORCH_AVAILABLE = False
|
||||
|
||||
Reference in New Issue
Block a user