Skip to content

ainize-team/SR-FastAPI

Repository files navigation

SR-FastAPI

Github Contributors GitHub issues Github Last Commit Github Repository Size GitHub Stars GitHub Forks GitHub Watch

Supported Python versions Imports Code style pre-commit Package Management

Description

FastAPI Server for Super Resolution Model.

Installation

  1. Build FastAPI Docker Image
git clone https://github.com/ainize-team/SR-FastAPI
cd SR-FastAPI
docker build -t sr-fastapi .
  1. Run Docker Image
docker run -d --name <server_container_name> -p 8000:8000 \
-e APP_NAME=<server_app_name> \
-e BROKER_URI=<broker_uri> \
-e FIREBASE_APP_NAME=<firebase_app_name> \
-e DATABASE_URL=<firebase_realtime_database_url> \
-e STORAGE_BUCKET=<firebase_storage_url> \
-v <firebase_credential_path>:/app/key \
sr-fastapi

Or, you can use the .env file to run as follows.

docker run -d --name <server_container_name> -p 8000:8000 \
--env-file <env filename> \
-v <firebase_credential_path>:/app/key \
sr-fastapi

For Developers

  1. install dev package.
poetry install
  1. install pre-commit.
pre-commit install

License

Licence

About

FastAPI Server for Super Resolution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published