--- title: Morphaze Avatar Preprocessor emoji: 🧑‍🎨 colorFrom: purple colorTo: blue sdk: gradio sdk_version: "5.0.0" app_file: app.py pinned: false license: mit python_version: "3.10" --- # Morphaze Avatar Preprocessor Face preprocessing for the [Morphaze](https://morphaze.com) photo-to-3D-avatar pipeline. ## Models - **ReStyle** — GAN inversion producing cleaned face + W+ latent code (18×512 dims) - **GFPGAN** — Face restoration for degraded/blurry inputs (2× upscale) ## API ``` POST /api/predict Content-Type: application/json {"data": [, "restyle"]} ``` Response: ```json { "image": "", "latent": [9216 floats], "processing_time": 2.1 } ```