CoolFace
Apppublic

priyamdave000167/Ai_art_and_real_image_detector

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
App README

๐Ÿš€ AI Art vs Real Image Detector (FastAPI)

This project detects whether an uploaded image is:

  • โ€”Real
  • โ€”AI Generated
  • โ€”Other / Uncertain

Built using:

  • โ€”FastAPI
  • โ€”TensorFlow (CPU)
  • โ€”OpenCV
  • โ€”Docker (Hugging Face Spaces compatible)

๐Ÿง  Model

  • โ€”Format: .keras
  • โ€”Input size: 224 x 224
  • โ€”Output: single probability score ---

๐Ÿ”Œ API Endpoints

GET /

Health check

GET /health

Health check with model status

POST /predict

Upload an image file

Response

json
{
  "filename": "image.jpg",
  "prediction": "AI Generated",
  "confidence": "92.31%"
}