modeltest / README.md
yaseengoldfinchpc's picture
git push
5334fbf
metadata
title: modeltest
emoji: 🎨
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 3.0.26
app_file: app.py
app_port: 7860
pinned: false

Stable Diffusion Inpainting API

A FastAPI service for image inpainting using Stable Diffusion.

Features

  • Image inpainting using Stable Diffusion
  • FastAPI backend
  • Docker containerization
  • CUDA support
  • File size validation
  • Base64 image encoding/decoding

API Endpoints

  • POST /inpaint: Perform image inpainting
  • GET /health: Check service health

Environment Variables

  • HF_TOKEN: Hugging Face token (optional)
  • MAX_FILE_SIZE: Maximum file size (default: 10MB)

Model

Using Uminosachi/realisticVisionV51_v51VAE-inpainting from Hugging Face.

Demo

Check out the live demo at modeltest space