Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Created March 16, 2021 17:10
Show Gist options
  • Save oscar-defelice/eedf3bcf3c881ae2d9c1bf403817715c to your computer and use it in GitHub Desktop.
Save oscar-defelice/eedf3bcf3c881ae2d9c1bf403817715c to your computer and use it in GitHub Desktop.
import os
import json
from .regressor import PriceEstimator
MODEL_FOLDER = os.getenv("MODEL_FOLDER")
ESTIMATOR = PriceEstimator.from_pretrained(MODEL_FOLDER)
def get_predictions(X):
return ESTIMATOR.predict(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment