CoolFace
Apppublic

Ali-001-A/indonesian-gambling-site-detector

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ•ต๏ธ Indonesian Gambling Website Detection - Huggingface Space

This Space detects whether a website is related to gambling based on its screenshot and OCR text.

Features

  • โ€”Single URL Prediction
  • โ€”Batch URLs Prediction
  • โ€”Screenshot capture using external API (apiflash)
  • โ€”OCR extraction using a hybrid approach (OCR.Space API + EasyOCR fallback)
  • โ€”Multimodal model (image + text fusion)

Instructions

  1. 1.Enter a website URL or upload a .txt file containing multiple URLs (one URL per line).
  2. 2.The system will:
  3. 3.Take a screenshot of the website.
  4. 4.Extract text using Tesseract OCR.
  5. 5.Predict if it is a Gambling or Non-Gambling site.

Model

  • โ€”Fusion model (best_fusion_model.pth) trained with EfficientNet + IndoBERT. <!-- - Hosted at: HuggingFace Model Hub -->

Deployment

This Space requires:

  • โ€”Gradio
  • โ€”Torch
  • โ€”Transformers
  • โ€”EasyOCR
  • โ€”Pillow
  • โ€”Pandas
  • โ€”Requests

Important Notes

โšก Inference may take longer than expected because this Space runs on CPU-only hardware. Performance is significantly slower compared to GPU-enabled environments like Google Colab. Each prediction can take several minutes due to the complexity of multimodal fusion models (image + text processing).

For faster performance, consider running the model locally with a GPU, or upgrading to a GPU-enabled Huggingface Space.