Exemple #1
0
def main():
    #  create remote ebonite client from saved configuration
    ebnt = Ebonite.from_config_file('client_config.json')
    model = ebnt.get_model('add_one_model', 'my_task', 'my_project')

    # run flask service with this model
    run_test_model_server(model)
Exemple #2
0
def main():
    #  create remote ebonite client from saved configuration
    os.environ['S3_ACCESS_KEY'] = 'eboniteAccessKey'
    os.environ['S3_SECRET_KEY'] = 'eboniteSecretKey'
    ebnt = Ebonite.from_config_file('client_config.json')
    model = ebnt.get_model('add_one_model', 'my_task', 'my_project')

    # run flask service with this model
    run_model_server(model)