Text Classification
Transformers
ONNX
Safetensors
English
roberta
Generated from Trainer
rejection
no_answer
chatgpt

Fix import and typo in device

#1
by rk404 - opened
  • pipeline wasn't imported so it was giving error.
  • It should be "cpu" instead of "CPU" in device=torch.device("cuda" if torch.cuda.is_available() else "CPU"),
Protect AI org

Thank you, @rk404 .

asofter changed pull request status to merged
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment