Skip to content

A simple HuggingFace model containerized with Docker and served with FastAPI

Notifications You must be signed in to change notification settings

sebastien-mcrae/simple-model-containerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run with Docker (recommended)

Build the Docker image

docker build -t api .

Run the container

docker run -p 8000:8000 api

Run with Poetry

Install Poetry

See instructions here.

Install the dependencies in a virtual environment

poetry install

Start the API

poetry run api

Poetry commands

Format the code

poetry run format

Lint the code

poetry run lint

Fix linting errors

poetry run lint --fix

About

A simple HuggingFace model containerized with Docker and served with FastAPI

Resources

Stars

Watchers

Forks