Uploading data and training the classifier