VikramSingh178's picture
chore: Update import statement for InpaintingRequest in painting.py and refactor code to use shared BaseModel for Painting and InpaintingRequest classes
6c850b1
raw
history blame
215 Bytes
from pydantic import BaseModel
from fastapi import Form
class InpaintingRequest(BaseModel):
prompt: str
negative_prompt: str
num_inference_steps: int
strength: float
guidance_scale: float