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.
-
Clone this repository:
git clone https://github.com/yourusername/datacraft-docker-workshop.git
-
Navigate to the project directory:
cd datacraft-docker-workshop
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/.
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/.
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.
- Sets up the Python environment and installs dependencies
- Copies the necessary files and sets up the application
- Defines the services, networks, and volumes for the Docker container
- Specifies the image, build context, and ports
- 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
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
MIT