Do not softmax when num_labels==1 (#7726)
Do not softmax when num_labels==1 (#7726)

* Do not softmax when num_labels==1

* Update src/transformers/pipelines.py

Co-authored-by: Funtowicz Morgan <018625663303a41d42ec71b7e165a2c4820345ae@users.noreply.github.com>

Co-authored-by: Funtowicz Morgan <018625663303a41d42ec71b7e165a2c4820345ae@users.noreply.github.com>
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/pytorch-transformers