Previously, the size was [length_seq, 1].
After, unsqueezing it became [1,length_seq,1].
You should use scores = model(preprocess_seq.reshape(1,-1))
This will make preprocess_seq of shape [1, length_seq] .