# create a report with information on the prediction
## see https://stackoverflow.com/a/59578663
else:
else:
# use prediction function from application_functions.py to predict chemical values
M6.error(f'Error: The model was trained with {ncols} wavelengths, but you provided {preprocessed.shape[1]} wavelengths for prediction. Please ensure they match.')