In the simplest case, you can just use 0.5 as the threshold to calculate your predictions.
You could also compute the ROC curve, chose a point with a suitable TRP vs FPR, and use this as your threshold.
Have a look at some examples from scikit-learn 9.