An open API service indexing awesome lists of open source software.

https://github.com/swatiupadhyay/horoscope-predictor

ML-powered zodiac horoscope predictor with SVM and Flask โœจ
https://github.com/swatiupadhyay/horoscope-predictor

flask horoscope machine-learning ml-app project python svm zodiac

Last synced: 2 months ago
JSON representation

ML-powered zodiac horoscope predictor with SVM and Flask โœจ

Awesome Lists containing this project

README

          

# ๐Ÿ”ฎ Horoscope Predictor

Welcome to **Horoscope Predictor**, your cosmic bestie powered by machine learning and sprinkled with stardust. โœจ
Choose your zodiac sign and reveal a personalized horoscope โ€” trained on real data, delivered with love (and an SVM model behind the scenes).

Built using Flask, HTML/CSS/JS, and a trained **SVM classifier**, this app bridges the mystical with the mathematical. โ™ก

---

## ๐ŸŒŸ Features

- ๐Ÿ”ฎ Predicts your horoscope based on your selected zodiac sign
- ๐Ÿ’ป Trained using real horoscope data (SVM, 93.97% accuracy baby!)
- ๐ŸŒˆ Clean, dreamy UI with glowy animations
- ๐Ÿง  Integrated ML model via Flask backend
- ๐Ÿ’ซ Super smooth user experience (with a cute lil reveal button!)

---

## ๐Ÿ’ฝ Tech Stack

| Frontend | Backend | Machine Learning |
|----------------|----------------|---------------------------------|
| HTML, CSS, JS | Python + Flask | SVM Classifier (scikit-learn) |

---

## ๐Ÿง  How It Works

1. User picks a zodiac sign from the dropdown โ™’๏ธ
2. The sign is sent via POST request to Flask backend ๐Ÿ”
3. Flask returns a matching horoscope from a curated horoscope bank ๐ŸŒ™
4. The app displays it with animation + โœจvibesโœจ

> *Bonus*: The model was trained on a dataset of over **5,000 horoscope entries**, using SVM, Naive Bayes, and Random Forest.
> **SVM** gave the best results and is the **only model used in the app**.

---

## ๐Ÿš€ Run It Locally

Clone the repo and feel the universe unfold:

```bash
git clone https://github.com/yourusername/horoscope-predictor.git
cd horoscope-predictor
Install the necessary dependencies:

pip install -r requirements.txt
Then run the Flask app:

python app.py
Open your browser and go to http://127.0.0.1:5000 to reveal your fate โœจ

๐Ÿ—‚ Project Structure

horoscope-predictor/
โ”œโ”€โ”€ static/
โ”‚ โ”œโ”€โ”€ css/
โ”‚ โ”‚ โ””โ”€โ”€ style.css
โ”‚ โ”œโ”€โ”€ js/
โ”‚ โ”‚ โ””โ”€โ”€ script.js
โ”œโ”€โ”€ templates/
โ”‚ โ””โ”€โ”€ index.html
โ”œโ”€โ”€ models/
โ”‚ โ”œโ”€โ”€ SVM_horoscope.pkl # โœ… used
โ”‚ โ”œโ”€โ”€ RF_horoscope.pkl # โŒ not used
โ”‚ โ”œโ”€โ”€ NB_horoscope.pkl # โŒ not used
โ”‚ โ””โ”€โ”€ vectorizer.pkl
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿงšโ€โ™€๏ธ Author
Made with love and a sprinkle of delusion by Swati Upadhyay ๐Ÿ’ซ