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.
- Upload images in JPG, JPEG, or PNG format.
- Detect if the image is real or AI-generated.
- Display prediction confidence.
-
Clone the repository:
git clone <repository-url> cd fake_real_image
-
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
-
Install the required dependencies:
pip install -r requirements.txt
Run the Streamlit app with the following command:
streamlit run web.pyOpen the provided local URL in your browser, upload an image, and view the prediction.
- Python 3.7+
- TensorFlow
- Streamlit
- Pillow
- numpy
All dependencies are listed in requirements.txt.
This project is licensed under the MIT License. See the LICENSE file for details.