house-price-predictor / inference.py
abdullahdaniyal's picture
Create inference.py
bd892a7 verified
raw
history blame contribute delete
285 Bytes
# 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()}