credify / README.md
abhisheksan's picture
Refactor main.py and add NUMBA_DISABLE_JIT environment variable
e4b2f2c
metadata
title: Credify
emoji: 🐳
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860

Credify 🐳

Hugging Face Spaces

Credify is a Docker-based application designed to detect tampered media and assign unique fingerprints to them.

πŸš€ Quick Setup

Prerequisites

  • Python 3.10
  • Docker
  • FFmpeg

Installation

  1. Clone the repository:

    git clone https://github.com/abhisheksharm-3/credify.git
    cd credify/server
    
  2. Create and activate a virtual environment:

    python -m venv venv
    .\venv\Scripts\activate
    
  3. Install required dependencies:

    pip install -r requirements.txt
    
  4. Download models: The models folder is not included in the repository due to its large size. Download the models from this Google Drive link and place them in a folder named models within the server directory.

  5. Install FFmpeg:

    • Open CMD and run: winget install ffmpeg
    • Add the FFmpeg bin path to System Environment Variables
    • To find the path, run: where ffmpeg in CMD

πŸƒβ€β™‚οΈ Running the Application

Start the application using:

uvicorn app.main:app --reload

πŸ‹ Docker Deployment

The application is configured for Docker deployment with the following specifications:

  • App Port: 7860
  • SDK: Docker

🎨 Theme

  • Color Scheme: Blue to Green

πŸ› οΈ Troubleshooting

If you encounter a path error when re-uploading the same image or audio, ensure that FFmpeg is properly installed and configured on your system as described in the installation steps.