CTO_TCP_V1 / fastapi.py
ishworrsubedii's picture
fix: minor bug
e6e2225
raw
history blame
315 Bytes
"""
Created By: ishwor subedi
Date: 2024-10-04
"""
from app import clothing_try_on_base64
from fastapi import FastAPI
app = FastAPI(title="CTO TCP V1")
@app.post("/clothingTryOn")
async def clothing_try_on(image: str, mask: str):
result = clothing_try_on_base64(image, mask)
return {"result": result}