Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VariRank 🚀

License Hugging Face

This repository contains two AI-powered models:

  1. SEO Rank Classifier (VariRank): Predict whether a web page is SEO-friendly, its probability, and expected rank (top1, top3, top10, below10).
  2. Viral Trend Detector: Detect whether a social media post is likely to go viral.

🌟 Features

SEO Rank Classifier

  • Input HTML content in JSON format.
  • Predict SEO friendliness (true / false).
  • Get probability (%) and expected rank.
  • Deployment via Hugging Face Spaces.

Viral Trend Detector

  • Input post text in JSON format.
  • Predict viral potential (true / false).
  • Get probability (%) and predicted platform (Twitter, Facebook, etc.).
  • Fast inference using ONNX models.

💻 Installation

  1. Clone the repository:
git clone https://github.com/omar-abo-el-maaty/VariRank-AI-Models.git
  1. Navigate to the project folder:
cd VariRank-AI-Models
  1. Install dependencies:
pip install -r requirements.txt

⚙️ Usage

SEO Rank Classifier

  1. Preprocess HTML content:
python scripts/seo_preprocess.py
  1. Run predictions:
python scripts/app.py
  1. Input JSON example:
{
  "html": "<html><head><title>My Page</title></head><body>...</body></html>"
}
  1. Example output:
{
  "seo_friendly": true,
  "probability": 92.3,
  "expected_rank": "top3"
}

Try online: Hugging Face App


Viral Trend Detector

  1. Preprocess text data:
python scripts/viral_trend_detector_v3.py
  1. Input JSON example:
{
  "text": "Check out this amazing AI project that will go viral!"
}
  1. Example output:
{
  "is_viral": true,
  "probability": 87.5,
  "platform": "Twitter"
}

Try online: Hugging Face Viral Trend Detector


🗂 Project Structure

VariRank-AI-Models/
│
├─ model/
│   ├─ best_classification_model.onnx      # SEO model
│   ├─ viral_trend_model.onnx              # Viral trend model
│
├─ scripts/
│   ├─ seo_train_onnx_v11.py               # SEO training script
│   ├─ seo_preprocess.py                   # SEO preprocessing
│   ├─ app.py                              # SEO main app
│   ├─ V_app.py                            # Viral trend detector app
│   └─ viral_trend_detector_v3.py          # Viral trend detector
│
├─ data/                                   # Dataset for viral model
├─ tfidf.pkl                               # TF-IDF for viral model
├─ le_platform.pkl                         # Label encoder for viral model
├─ requirements.txt
└─ README.md

📄 License

This project is licensed under the MIT License.

About

This repository contains two AI-powered models: 1- SEO Rank Classifier (VariRank): Predict whether a web page is SEO-friendly, its probability, and expected rank (top1, top3, top10, below10). 2- Viral Trend Detector: Detect whether a social media post is likely to go viral.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages