Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available: 6.24.0
metadata
title: Image Preprocessor
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
python_version: '3.11'
Image Preprocessor — MTCNN Face Detection
Detects a face in an uploaded image, crops it with a small context margin, and returns a clean 224 × 224 RGB image ready for downstream emotion classification.
API
POST /preprocess
Input : image (multipart file)
Output: preprocessed face image (PNG)
Used internally by the LyricMind backend (image_to_emotion pipeline).