Do not softmax when num_labels==1
When `config.num_labels=1`, the text classification pipeline shouldn't softmax over the results as it will always return 1. Instead, when the number of labels is 1, this will run a sigmoid over the result.

cf https://github.com/huggingface/transformers/issues/7493#issuecomment-706413792