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