File size: 875 Bytes
43c5517
5334fbf
43c5517
 
 
 
5334fbf
 
43c5517
5334fbf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---

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](https://huggingface.co/spaces/yaseengoldfinchpc/modeltest)