Skip to content

repeated load_model if receiving multiple calls  #1

@yimcai

Description

@yimcai

I am wondering if it would be better to load keras model once, and assign it to a global variable. It seems get_predictions would load keras model every time it gets called.
https://github.com/PyDataBlog/fastapi-model-deployment/blob/master/app/data/predictions_handler.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions