File size: 285 Bytes
bd892a7
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# inference.py
import joblib

# Load your trained model
model = joblib.load("house_price_predictor_model.joblib")

def predict(data):
    # Assuming `data` is a list of features needed by your model
    prediction = model.predict([data])
    return {'prediction': prediction.tolist()}