Loading pre-trained models

Hello,
I am simply trying to do what the online demo does in Python but the predictor model isn’t loading. I tried loading different models but that didn’t make a difference.

I am using it in Windows.

  1. Do I simply need to wait longer for the model to load? But then how does the online demo give results so fast?
  2. How do I get quicker results for using pre-trained models? My application is a chatbot.

Code and errors printed after Keyboard Interrupt:
from allennlp.predictors.predictor import Predictor

import allennlp_models.sentiment

predictor = Predictor.from_path(“https://allennlp.s3.amazonaws.com/models/ner-model-2018.04.26.tar.gz”)
HBox(children=(FloatProgress(value=0.0, max=711852086.0), HTML(value=’’)))
Traceback (most recent call last):

File “”, line 2, in
predictor = Predictor.from_path(“https://allennlp.s3.amazonaws.com/models/ner-model-2018.04.26.tar.gz”)

File “C:\Users\Admin\anaconda3\lib\site-packages\allennlp\predictors\predictor.py”, line 274, in from_path
load_archive(archive_path, cuda_device=cuda_device),

File “C:\Users\Admin\anaconda3\lib\site-packages\allennlp\models\archival.py”, line 159, in load_archive
resolved_archive_file = cached_path(archive_file)

File “C:\Users\Admin\anaconda3\lib\site-packages\allennlp\common\file_utils.py”, line 103, in cached_path
return get_from_cache(url_or_filename, cache_dir)

File “C:\Users\Admin\anaconda3\lib\site-packages\allennlp\common\file_utils.py”, line 257, in get_from_cache
http_get(url, temp_file)

File “C:\Users\Admin\anaconda3\lib\site-packages\allennlp\common\file_utils.py”, line 210, in http_get
for chunk in req.iter_content(chunk_size=1024):

File “C:\Users\Admin\anaconda3\lib\site-packages\requests\models.py”, line 750, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):

File “C:\Users\Admin\anaconda3\lib\site-packages\urllib3\response.py”, line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)

File “C:\Users\Admin\anaconda3\lib\site-packages\urllib3\response.py”, line 507, in read
data = self._fp.read(amt) if not fp_closed else b""

File “C:\Users\Admin\anaconda3\lib\http\client.py”, line 457, in read
n = self.readinto(b)

File “C:\Users\Admin\anaconda3\lib\http\client.py”, line 501, in readinto
n = self.fp.readinto(b)

File “C:\Users\Admin\anaconda3\lib\socket.py”, line 589, in readinto
return self._sock.recv_into(b)

File “C:\Users\Admin\anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py”, line 313, in recv_into
return self.connection.recv_into(*args, **kwargs)

File “C:\Users\Admin\anaconda3\lib\site-packages\OpenSSL\SSL.py”, line 1839, in recv_into
result = _lib.SSL_read(self._ssl, buf, nbytes)

KeyboardInterrupt