/text-bg-color-matcher

A Tinder alike web app for colors

Primary LanguageJupyter NotebookMIT LicenseMIT

THE NEURAL NETWORK GO BRR

It's like Tinder but for colors

Contribute · Report Bug

pytorchfastapireactpython

This is a simple project to predict the color of text in case of a given background color. The project is divided into two parts: the frontend and the backend. The frontend is a simple React app that allows the user to select a color and the backend is a simple FastAPI app that uses a pre-trained (Home-made) model to predict the color of the text.

Getting Started

Prerequisites

  • Python 3.8.5
  • Node 14.17.0

Installation

  1. Clone the repo
    git clone
  2. It is recommended to use a virtual environment
    python -m venv venv
  3. Install Python packages
    pip install -r requirements.txt
  4. Install Node packages
    pnpm install or npm install

Usage

Frontend

To run the frontend, run the following command in the frontend directory:

pnpm start or npm start

Backend

To run the backend, run the following command in the backend directory:

uvicorn main:app --reload

RUN With Docker

run the following command in the root directory:

docker-compose up

DEMO

demo

Contribute

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Feel free to open a pull request or an issue.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

For any questions or suggestions, feel free to contact us: