Spaces:
tner
/
NER
Runtime error

runtime error

Space not ready. Reason: Error, exitCode: 1, message: None

Container logs:

2022-11-11 11:51:23 INFO     initialize language model with `tner/roberta-large-ontonotes5`

Downloading:   0%|          | 0.00/64.2k [00:00<?, ?B/s]
Downloading: 100%|██████████| 64.2k/64.2k [00:00<00:00, 46.7MB/s]

Downloading:   0%|          | 0.00/1.32G [00:00<?, ?B/s]
Downloading:   1%|          | 9.60M/1.32G [00:00<00:13, 101MB/s]
Downloading:   2%|▏         | 20.8M/1.32G [00:00<00:12, 111MB/s]
Downloading:   2%|▏         | 31.4M/1.32G [00:00<00:12, 110MB/s]
Downloading:   3%|▎         | 42.0M/1.32G [00:00<00:15, 91.1MB/s]
Downloading:   4%|▍         | 51.0M/1.32G [00:00<00:17, 78.6MB/s]
Downloading:   5%|▍         | 62.3M/1.32G [00:00<00:15, 89.5MB/s]
Downloading:   5%|▌         | 71.3M/1.32G [00:00<00:16, 79.4MB/s]
Downloading:   6%|▌         | 82.6M/1.32G [00:00<00:14, 89.6MB/s]
Downloading:   7%|▋         | 92.9M/1.32G [00:01<00:13, 94.6MB/s]
Downloading:   8%|▊         | 102M/1.32G [00:01<00:16, 77.2MB/s] 
Downloading:   8%|▊         | 113M/1.32G [00:01<00:14, 86.6MB/s]
Downloading:   9%|▉         | 125M/1.32G [00:01<00:13, 94.6MB/s]
Downloading:  10%|█         | 136M/1.32G [00:01<00:12, 100MB/s] 
Downloading:  11%|█         | 147M/1.32G [00:01<00:12, 105MB/s]
Downloading:  12%|█▏        | 158M/1.32G [00:01<00:11, 109MB/s]
Downloading:  13%|█▎        | 169M/1.32G [00:01<00:11, 111MB/s]
Downloading:  13%|█▎        | 180M/1.32G [00:01<00:10, 113MB/s]
Downloading:  14%|█▍        | 191M/1.32G [00:02<00:11, 109MB/s]
Downloading:  15%|█▍        | 202M/1.32G [00:02<00:10, 112MB/s]
Downloading:  16%|█▌        | 214M/1.32G [00:02<00:10, 114MB/s]
Downloading:  17%|█▋        | 225M/1.32G [00:02<00:10, 115MB/s]
Downloading:  17%|█▋        | 236M/1.32G [00:02<00:10, 116MB/s]
Downloading:  18%|█▊        | 248M/1.32G [00:02<00:12, 93.3MB/s]
Downloading:  19%|█▉        | 257M/1.32G [00:02<00:13, 87.0MB/s]
Downloading:  20%|█▉        | 268M/1.32G [00:02<00:12, 92.7MB/s]
Downloading:  21%|██        | 279M/1.32G [00:02<00:11, 98.8MB/s]
Downloading:  21%|██▏       | 290M/1.32G [00:03<00:10, 104MB/s] 
Downloading:  22%|██▏       | 301M/1.32G [00:03<00:10, 107MB/s]
Downloading:  23%|██▎       | 311M/1.32G [00:03<00:10, 107MB/s]
Downloading:  24%|██▍       | 323M/1.32G [00:03<00:09, 110MB/s]
Downloading:  25%|██▍       | 333M/1.32G [00:03<00:10, 107MB/s]
Downloading:  25%|██▌       | 345M/1.32G [00:03<00:09, 110MB/s]
Downloading:  26%|██▋       | 356M/1.32G [00:03<00:09, 111MB/s]
Downloading:  27%|██▋       | 366M/1.32G [00:03<00:09, 108MB/s]
Downloading:  28%|██▊       | 377M/1.32G [00:03<00:09, 102MB/s]
Downloading:  29%|██▊       | 387M/1.32G [00:04<00:09, 105MB/s]
Downloading:  29%|██▉       | 398M/1.32G [00:04<00:09, 104MB/s]
Downloading:  30%|███       | 407M/1.32G [00:04<00:09, 102MB/s]
Downloading:  31%|███       | 417M/1.32G [00:04<00:09, 100MB/s]
Downloading:  32%|███▏      | 427M/1.32G [00:04<00:09, 102MB/s]
Downloading:  32%|███▏      | 437M/1.32G [00:04<00:09, 100MB/s]
Downloading:  33%|███▎      | 447M/1.32G [00:04<00:09, 101MB/s]
Downloading:  34%|███▍      | 457M/1.32G [00:04<00:09, 99.3MB/s]
Downloading:  34%|███▍      | 466M/1.32G [00:04<00:10, 85.8MB/s]
Downloading:  35%|███▌      | 476M/1.32G [00:05<00:10, 85.6MB/s]
Downloading:  36%|███▌      | 484M/1.32G [00:05<00:10, 85.8MB/s]
Downloading:  37%|███▋      | 495M/1.32G [00:05<00:09, 94.4MB/s]
Downloading:  37%|███▋      | 507M/1.32G [00:05<00:08, 101MB/s] 
Downloading:  38%|███▊      | 518M/1.32G [00:05<00:08, 106MB/s]
Downloading:  39%|███▉      | 529M/1.32G [00:05<00:07, 110MB/s]
Downloading:  40%|███▉      | 540M/1.32G [00:05<00:07, 112MB/s]
Downloading:  41%|████      | 551M/1.32G [00:05<00:07, 108MB/s]
Downloading:  42%|████▏     | 562M/1.32G [00:05<00:07, 106MB/s]
Downloading:  42%|████▏     | 572M/1.32G [00:06<00:08, 92.1MB/s]
Downloading:  43%|████▎     | 581M/1.32G [00:06<00:10, 78.4MB/s]
Downloading:  44%|████▍     | 592M/1.32G [00:06<00:09, 87.9MB/s]
Downloading:  45%|████▍     | 603M/1.32G [00:06<00:08, 94.8MB/s]
Downloading:  45%|████▌     | 614M/1.32G [00:06<00:07, 101MB/s] 
Downloading:  46%|████▋     | 626M/1.32G [00:06<00:07, 106MB/s]
Downloading:  47%|████▋     | 636M/1.32G [00:06<00:07, 98.3MB/s]
Downloading:  48%|████▊     | 648M/1.32G [00:06<00:07, 104MB/s] 
Downloading:  49%|████▊     | 659M/1.32G [00:06<00:06, 108MB/s]
Downloading:  50%|████▉     | 670M/1.32G [00:07<00:06, 111MB/s]
Downloading:  50%|█████     | 681M/1.32G [00:07<00:07, 92.1MB/s]
Downloading:  51%|█████     | 692M/1.32G [00:07<00:06, 98.9MB/s]
Downloading:  52%|█████▏    | 704M/1.32G [00:07<00:06, 104MB/s] 
Downloading:  53%|█████▎    | 715M/1.32G [00:07<00:06, 109MB/s]
Downloading:  54%|█████▎    | 726M/1.32G [00:07<00:05, 112MB/s]
Downloading:  55%|█████▍    | 737M/1.32G [00:07<00:06, 94.0MB/s]
Downloading:  55%|█████▌    | 749M/1.32G [00:07<00:06, 100MB/s] 
Downloading:  56%|█████▌    | 760M/1.32G [00:07<00:05, 104MB/s]
Downloading:  57%|█████▋    | 770M/1.32G [00:08<00:06, 96.5MB/s]
Downloading:  58%|█████▊    | 780M/1.32G [00:08<00:05, 100MB/s] 
Downloading:  59%|█████▊    | 791M/1.32G [00:08<00:05, 105MB/s]
Downloading:  59%|█████▉    | 803M/1.32G [00:08<00:05, 108MB/s]
Downloading:  60%|██████    | 813M/1.32G [00:08<00:05, 106MB/s]
Downloading:  61%|██████    | 824M/1.32G [00:08<00:05, 105MB/s]
Downloading:  62%|██████▏   | 834M/1.32G [00:08<00:05, 103MB/s]
Downloading:  62%|██████▏   | 844M/1.32G [00:08<00:05, 102MB/s]
Downloading:  63%|██████▎   | 853M/1.32G [00:08<00:05, 102MB/s]
Downloading:  64%|██████▍   | 863M/1.32G [00:09<00:05, 101MB/s]
Downloading:  65%|██████▍   | 873M/1.32G [00:09<00:04, 101MB/s]
Downloading:  65%|██████▌   | 882M/1.32G [00:09<00:04, 99.4MB/s]
Downloading:  66%|██████▌   | 892M/1.32G [00:09<00:05, 90.3MB/s]
Downloading:  67%|██████▋   | 902M/1.32G [00:09<00:05, 94.0MB/s]
Downloading:  67%|██████▋   | 911M/1.32G [00:09<00:04, 96.0MB/s]
Downloading:  68%|██████▊   | 921M/1.32G [00:09<00:04, 94.4MB/s]
Downloading:  69%|██████▉   | 931M/1.32G [00:09<00:04, 98.0MB/s]
Downloading:  70%|██████▉   | 941M/1.32G [00:09<00:04, 99.4MB/s]
Downloading:  70%|███████   | 951M/1.32G [00:09<00:04, 101MB/s] 
Downloading:  71%|███████   | 960M/1.32G [00:10<00:04, 99.1MB/s]
Downloading:  72%|███████▏  | 970M/1.32G [00:10<00:04, 99.4MB/s]
Downloading:  72%|███████▏  | 979M/1.32G [00:10<00:03, 99.5MB/s]
Downloading:  73%|███████▎  | 989M/1.32G [00:10<00:03, 100MB/s] 
Downloading:  74%|███████▍  | 999M/1.32G [00:10<00:03, 101MB/s]
Downloading:  75%|███████▍  | 0.98G/1.32G [00:10<00:03, 100MB/s]
Downloading:  75%|███████▌  | 0.99G/1.32G [00:10<00:03, 101MB/s]
Downloading:  76%|███████▌  | 1.00G/1.32G [00:10<00:03, 100MB/s]
Downloading:  77%|███████▋  | 1.01G/1.32G [00:10<00:03, 93.5MB/s]
Downloading:  77%|███████▋  | 1.02G/1.32G [00:10<00:03, 96.5MB/s]
Downloading:  78%|███████▊  | 1.03G/1.32G [00:11<00:03, 98.6MB/s]
Downloading:  79%|███████▉  | 1.04G/1.32G [00:11<00:03, 94.1MB/s]
Downloading:  80%|███████▉  | 1.05G/1.32G [00:11<00:02, 96.9MB/s]
Downloading:  80%|████████  | 1.06G/1.32G [00:11<00:02, 98.9MB/s]
Downloading:  81%|████████  | 1.07G/1.32G [00:11<00:02, 100MB/s] 
Downloading:  82%|████████▏ | 1.08G/1.32G [00:11<00:02, 102MB/s]
Downloading:  83%|████████▎ | 1.09G/1.32G [00:11<00:02, 104MB/s]
Downloading:  83%|████████▎ | 1.10G/1.32G [00:11<00:02, 104MB/s]
Downloading:  84%|████████▍ | 1.11G/1.32G [00:11<00:02, 100MB/s]
Downloading:  85%|████████▍ | 1.12G/1.32G [00:12<00:02, 97.7MB/s]
Downloading:  85%|████████▌ | 1.13G/1.32G [00:12<00:02, 96.7MB/s]
Downloading:  86%|████████▌ | 1.14G/1.32G [00:12<00:01, 99.1MB/s]
Downloading:  87%|████████▋ | 1.15G/1.32G [00:12<00:02, 83.2MB/s]
Downloading:  88%|████████▊ | 1.16G/1.32G [00:12<00:01, 89.2MB/s]
Downloading:  88%|████████▊ | 1.17G/1.32G [00:12<00:01, 94.2MB/s]
Downloading:  89%|████████▉ | 1.18G/1.32G [00:12<00:01, 97.9MB/s]
Downloading:  90%|████████▉ | 1.19G/1.32G [00:12<00:01, 101MB/s] 
Downloading:  91%|█████████ | 1.20G/1.32G [00:12<00:01, 102MB/s]
Downloading:  91%|█████████▏| 1.21G/1.32G [00:13<00:01, 103MB/s]
Downloading:  92%|█████████▏| 1.22G/1.32G [00:13<00:01, 104MB/s]
Downloading:  93%|█████████▎| 1.23G/1.32G [00:13<00:00, 105MB/s]
Downloading:  94%|█████████▎| 1.24G/1.32G [00:13<00:00, 105MB/s]
Downloading:  94%|█████████▍| 1.25G/1.32G [00:13<00:00, 106MB/s]
Downloading:  95%|█████████▌| 1.26G/1.32G [00:13<00:00, 106MB/s]
Downloading:  96%|█████████▌| 1.27G/1.32G [00:13<00:00, 106MB/s]
Downloading:  97%|█████████▋| 1.28G/1.32G [00:13<00:00, 107MB/s]
Downloading:  97%|█████████▋| 1.29G/1.32G [00:13<00:00, 102MB/s]
Downloading:  98%|█████████▊| 1.30G/1.32G [00:13<00:00, 102MB/s]
Downloading:  99%|█████████▉| 1.31G/1.32G [00:14<00:00, 102MB/s]
Downloading: 100%|█████████▉| 1.32G/1.32G [00:14<00:00, 101MB/s]
Downloading: 100%|██████████| 1.32G/1.32G [00:14<00:00, 99.3MB/s]
2022-11-11 11:51:40 INFO     use CRF
2022-11-11 11:51:40 INFO     loading pre-trained CRF layer
2022-11-11 11:51:40 INFO     label2id: {'B-CARDINAL': 1, 'B-DATE': 2, 'B-EVENT': 30, 'B-FAC': 20, 'B-GPE': 7, 'B-LANGUAGE': 33, 'B-LAW': 9, 'B-LOC': 23, 'B-MONEY': 16, 'B-NORP': 6, 'B-ORDINAL': 15, 'B-ORG': 11, 'B-PERCENT': 13, 'B-PERSON': 4, 'B-PRODUCT': 28, 'B-QUANTITY': 24, 'B-TIME': 21, 'B-WORK_OF_ART': 18, 'I-CARDINAL': 22, 'I-DATE': 3, 'I-EVENT': 31, 'I-FAC': 32, 'I-GPE': 8, 'I-LANGUAGE': 36, 'I-LAW': 10, 'I-LOC': 27, 'I-MONEY': 17, 'I-NORP': 26, 'I-ORDINAL': 35, 'I-ORG': 12, 'I-PERCENT': 14, 'I-PERSON': 5, 'I-PRODUCT': 34, 'I-QUANTITY': 25, 'I-TIME': 29, 'I-WORK_OF_ART': 19, 'O': 0}
Traceback (most recent call last):
  File "app.py", line 5, in <module>
    model = TransformersNER("tner/roberta-large-ontonotes5")
  File "/home/user/.local/lib/python3.8/site-packages/tner/ner_model.py", line 87, in __init__
    if self.device == 'cpu':
AttributeError: 'TransformersNER' object has no attribute 'device'