Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,13 +1,58 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
AI-Powered Color Palette Generator
|
| 2 |
+
This application extracts dominant colours from any uploaded image and generates a corresponding colour palette with auto-generated CSS code, making it useful for designers, web developers, and creatives.
|
| 3 |
+
|
| 4 |
+
Features:
|
| 5 |
+
|
| 6 |
+
Dominant Colors Extraction: Detect the key colours from an uploaded image.
|
| 7 |
+
Colour Harmonies: Generates complementary and analogous colour suggestions.
|
| 8 |
+
Auto-Generated CSS: Get ready-to-use CSS code for web development.
|
| 9 |
+
Downloadable Palette Image: Download the generated color palette as an image.
|
| 10 |
+
|
| 11 |
+
How to Use:
|
| 12 |
+
|
| 13 |
+
Upload an Image: Click the "Upload Image" button and select any image file (PNG, JPEG, etc.).
|
| 14 |
+
Generate Palette: Click on "Submit" to generate the colour palette.
|
| 15 |
+
CSS and Palette Image: The app will display the colour palette, corresponding HEX codes, and a downloadable image. You’ll also get the CSS code for easy integration into web projects.
|
| 16 |
+
Clear Results: Click "Clear" to reset the app and upload a new image.
|
| 17 |
+
|
| 18 |
+
Installation and Setup
|
| 19 |
+
|
| 20 |
+
Requirements:
|
| 21 |
+
|
| 22 |
+
Python 3. x
|
| 23 |
+
radio
|
| 24 |
+
Pillow
|
| 25 |
+
NumPy
|
| 26 |
+
|
| 27 |
+
Clone the Repository:
|
| 28 |
+
To get started, clone this repository to your local machine:
|
| 29 |
+
|
| 30 |
+
bash
|
| 31 |
+
|
| 32 |
+
git clone https://huggingface.co/spaces/USERNAME/SPACE_NAME
|
| 33 |
+
cd SPACE_NAME
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
Install Dependencies:
|
| 37 |
+
|
| 38 |
+
Install the required Python libraries by running:
|
| 39 |
+
|
| 40 |
+
bash
|
| 41 |
+
|
| 42 |
+
pip install -r requirements.txt
|
| 43 |
+
|
| 44 |
+
Run the App Locally:
|
| 45 |
+
|
| 46 |
+
Run the app locally using the following command:
|
| 47 |
+
|
| 48 |
+
bash
|
| 49 |
+
|
| 50 |
+
python app.py
|
| 51 |
+
|
| 52 |
+
You will see output similar to:
|
| 53 |
+
|
| 54 |
+
bash
|
| 55 |
+
|
| 56 |
+
Running on local URL: http://127.0.0.1:7860
|
| 57 |
+
Running on public URL: https://your-app.gradio.live
|
| 58 |
+
Open your browser and go to the local URL (http://127.0.0.1:7860) or the public URL.
|