Skip to content

Learn how to deploy a simple ML model to Back4app Containers using FastAPI.

Notifications You must be signed in to change notification settings

duplxey/back4app-deploy-ml-model

Repository files navigation

back4app-deploy-ml-model

Learn how to deploy a simple ML model to Back4app Containers using FastAPI & Docker.

To learn more check out the article.

Development Setup

  1. Clone the repository.

  2. Install the dependencies:

    $ pip install -r requirements.txt
  3. Run the FastAPI server:

    $ uvicorn app.main:app --reload
  4. Navigate to http://localhost:8000/docs in your favorite web browser.

Deploy (Docker)

  1. Install Docker (if you don't have it yet).

  2. Build and tag the image:

    $ docker build -t iris-webapp:1.0 .
  3. Start a new container:

     $ docker run -p 8000:8000 --name iris-webapp iris-webapp:1.0
  4. Navigate to http://localhost:8000/ in your favorite web browser.

About

Learn how to deploy a simple ML model to Back4app Containers using FastAPI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published