Skip to content

soumya99999/fake_Ai_image_pred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Image Detector

This project is a Streamlit web application that detects whether an uploaded image is real or AI-generated. It uses a trained TensorFlow model to classify images and provides a confidence score for the prediction.

Features

  • Upload images in JPG, JPEG, or PNG format.
  • Detect if the image is real or AI-generated.
  • Display prediction confidence.

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd fake_real_image
  2. Create and activate a Python virtual environment (optional but recommended):

    python -m venv envr
    # On Windows
    envr\Scripts\activate
    # On macOS/Linux
    source envr/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the Streamlit app with the following command:

streamlit run web.py

Open the provided local URL in your browser, upload an image, and view the prediction.

Requirements

  • Python 3.7+
  • TensorFlow
  • Streamlit
  • Pillow
  • numpy

All dependencies are listed in requirements.txt.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

 
 
 

Contributors

Languages