STREAM
STREAM copied to clipboard
Import time and huggingface hub
Importing anything from stream_topic takes quite some time. I guess due to huggingface_hub and some downloads that are done in the background? I am not sure whether this really is the case or this simply indicates the future warning, but importing e.g. CBC takes up to a minute.
from stream_topic.models import CBC
envs\stream_topic_venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
Similarly, dash gives out some warnings which we couild try and avoid:
from stream_topic.models import CBC
\envs\stream_topic_venv\lib\site-packages\dash\_jupyter.py:28: DeprecationWarning: The `ipykernel.comm.Comm` class has been deprecated. Please use the `comm` module instead.For creating comms, use the function `from comm import create_comm`.
_dash_comm = Comm(target_name="dash")