In your Keras model, you are using a ReLU and Dropout after the first linear layer, which is missing in the PyTorch model.
Also, you are using an additional Dropout layer after the nn.Linear(50, 25) layer in PyTorch, which is not present in Keras and it seems you are using two Dense layers as the output, where the first one is using a “linear” activation function while the latter uses sigmoid.