mercredi 4 janvier 2017

Deploying a python script as a website, requires pre-loading a large pickle

I have a Python script that preloads a large (>300mb) pickled file. The file is a ngram language model.

The script requires an input of a single word, and outputs a predicted sentence.

ngram = pickle.load("...")

def do_something(word, ngram):
    return sentence

Everything works nicely in my python file, but I want to know what are the steps of deploying this script as a website.

Aucun commentaire:

Enregistrer un commentaire