import joblib import pandas as pd # Load the pipeline and model pipeline = joblib.load('full_pipeline_with_unit_price.pkl') model = joblib.load('best_model.pkl') def make_prediction(input_features): # Assuming input_features is a DataFrame with the correct structure processed_features = pipeline.transform(input_features) prediction = model.predict(processed_features) return prediction[0]