Skip to content

ValueError: 'use_cuda' set to True when cuda is unavailable.Make sure CUDA is available or set use_cuda=False. #1

@bekmuradov

Description

@bekmuradov

Hi, I am trying to run rpunct but getting following error in the console.
This is the error from the console:
File "app.py", line 3, in
rpunct = RestorePuncts()
File "/home/beck/miniconda3/envs/restore_punctuation/lib/python3.7/site-packages/rpunct/punctuate.py", line 18, in init
args={"silent": True, "max_seq_length": 512})
File "/home/beck/miniconda3/envs/restore_punctuation/lib/python3.7/site-packages/simpletransformers/ner/ner_model.py", line 212, in init
"'use_cuda' set to True when cuda is unavailable."
ValueError: 'use_cuda' set to True when cuda is unavailable.Make sure CUDA is available or set use_cuda=False.

How can I pass argument to RestorePuncts() to set cuda to False?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions