Committed by
666ghj
fix(sentiment_analyzer): streamlit and torch conflict
Showing
1 changed file
with
1 additions
and
0 deletions
| @@ -13,6 +13,7 @@ try: | @@ -13,6 +13,7 @@ try: | ||
| 13 | import torch | 13 | import torch |
| 14 | 14 | ||
| 15 | TORCH_AVAILABLE = True | 15 | TORCH_AVAILABLE = True |
| 16 | + torch.classes.__path__ = [] | ||
| 16 | except ImportError: | 17 | except ImportError: |
| 17 | torch = None # type: ignore | 18 | torch = None # type: ignore |
| 18 | TORCH_AVAILABLE = False | 19 | TORCH_AVAILABLE = False |
-
Please register or login to post a comment