1from joblib import load
2
3# Load model components
4pipeline = load('pipeline.joblib')
5label_encoder = load('label_encoder.joblib')
6
7# Make prediction
8text = "I need access to the sales dashboard"
9agent_encoded = pipeline.predict([text])[0]
10agent = label_encoder.inverse_transform([agent_encoded])[0]