Skip to content

CoffeBreak is a Flask-based web application that predicts the type of caffeine drink based on user input. It uses a trained machine learning model to make predictions and stores the input data in a Cassandra database

Notifications You must be signed in to change notification settings

Arcaici/MLCoffebreak-Deployed-Kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLCoffebreak-Deployed-Kubernetes

CoffeBreak is a Flask-based web application that predicts the type of caffeine drink based on user input. It uses a trained machine learning model to make predictions and stores the input data in a Cassandra database.

Prerequisites

Make sure you have the following dependencies installed:

  • Python 3.x
  • Flask
  • NumPy
  • Pandas
  • scikit-learn
  • Casssandra driver for Python

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/your_username/your_repository.git
  1. Install the required dependencies using pip:
pip install -r requirements.txt

Usage

  1. Run the Flask application:
python main.py
  1. Open your web browser and go to http://localhost:5000 to access the application.
  2. Enter the details of your caffeine drink (name, volume, calories, and caffeine) and click "Find drink type". 4.The predicted drink type will be displayed on the page along with a description.

Docker

A DockerCompose file of the CoffeBreak application is available on this repository. You can run the application inside Docker containers using the following command:

dockercompose up ./path/to/dockercompose.yaml

Remember to build docker images from docker files with command:

docker build -t image_name ./path/to/Dockerfile

Kubernetes

A Kubernetes deployment and service configuration file is available in the repository (coffe_break.yaml). You can use this file to deploy the CoffeBreak application on a Kubernetes cluster using the following command:

kubectl apply -f coffee_break.yaml

The application will be deployed as a service that can be accesible using:

kubectl port-forward -n caffeine deployment/caffeine-ws 8080:5000

Then open your browser and go to "http://localhost:8080"

Further Documentation

Here are the links to the Docker and Kubernetes versions and model:

About

CoffeBreak is a Flask-based web application that predicts the type of caffeine drink based on user input. It uses a trained machine learning model to make predictions and stores the input data in a Cassandra database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published