error = "Invalid epochs entry"
else:
valid_values["epochs"] = int(epochs)
if(data_to_test_count.isdigit() == False):
error = "Invalid data to test entry"
else:
valid_values["data_to_test"] = int(data_to_test_count)
After Change
error = "Invalid epochs entry"
else:
valid_values["epochs"] = int(epochs)
if not data_to_test_count.isdigit():
error = "Invalid data to test entry"
else:
valid_values["data_to_test"] = int(data_to_test_count)