Skip to content

datacraft-paris/2306-Ekimetrics-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DATACRAFT x EKIMETRICS Outbreak Forecasting App

This project provides a simple web application for outbreak forecasting. The application is built using Python and Gradio for the interface. It can be run in a Docker container for ease of deployment.

Table of Contents

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/datacraft-docker-workshop.git
  2. Navigate to the project directory:

    cd datacraft-docker-workshop

Usage

Local development

We recommend using Poetry to manage local environment.

Upon installation of Poetry, start the environment and install the dependencies :

poetry shell
poetry install

To run the app locally :

poetry run gradio ./app/datacraft.py

Your app should run on http://localhost:8080/.

Docker

Building the app :

docker build . -t datacraft

Running the app :

docker run -dp 8080:8080 datacraft

Access the app on your browser using http://localhost:8080/.

docker-compose

Build the Docker image:

docker-compose build

Run the Docker container:

docker-compose up

After starting the container, the Gradio interface will be available at http://localhost:8080.

Files Descriptions

Dockerfile

  • Sets up the Python environment and installs dependencies
  • Copies the necessary files and sets up the application

docker-compose.yml

  • Defines the services, networks, and volumes for the Docker container
  • Specifies the image, build context, and ports

main.py

  • Python script that utilizes Gradio to create a web interface for the outbreak forecasting model
  • Defines the inputs and outputs for the Gradio interface
├── Dockerfile
├── docker-compose.yml
├── app
│   ├── datacraft.py # Main file that runs the app
│   └── utils
│       └── outbreak.py
├── poetry.lock
├── pyproject.toml
└── README.md

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages