Skip to content

Instantly share code, notes, and snippets.

@DaveFlynn
Created April 7, 2022 07:09
Show Gist options
  • Save DaveFlynn/bacc42f60bd31f61da98c3012155d339 to your computer and use it in GitHub Desktop.
Save DaveFlynn/bacc42f60bd31f61da98c3012155d339 to your computer and use it in GitHub Desktop.
import os
import pandas as pd
import numpy as np
class Model():
def __init__(self, model_uri):
print(model_uri)
print(os.listdir(model_uri))
self.model_uri = model_uri
def load(self):
# Please write load model method below.
pass
def predict(self, X, feature_names = None, meta = None):
result = {"result": "Hello {}.".format(X)}
# Please write the prediction method below.
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment