Spaces:
Sleeping
Sleeping
chips commited on
Commit ·
7950f28
1
Parent(s): 3b76ad6
moving arguments around
Browse files25 unmodified lines2627282930313233343536373825 unmodified lines@app.post("/virtualTryOn", summary="Virtual try on single call",description="Virtual try on single call for complete outfit try on")async def virtual_try_on(top_garment_image: UploadFile = File(...),bottom_garment_image: UploadFile = File(...),top_back_garment_image: UploadFile = File(...),bottom_back_garment_image: UploadFile = File(...),talent_trigger_word: str,talent_lora_url: str,num_images: int = 4):"""Pass in the top garment image, bottom garment image, top back garment image, bottom back garment image, talent trigger word, talent lora url and number of images to generate.Only one front garment image is required, the rest are optional.25 unmodified lines262728293031323334353637383925 unmodified lines@app.post("/virtualTryOn", summary="Virtual try on single call",description="Virtual try on single call for complete outfit try on")async def virtual_try_on(talent_trigger_word: str,talent_lora_url: str,num_images: int = 4,top_garment_image: UploadFile = File(None),bottom_garment_image: UploadFile = File(None),top_back_garment_image: UploadFile = File(None),bottom_back_garment_image: UploadFile = File(None),):"""Pass in the top garment image, bottom garment image, top back garment image, bottom back garment image, talent trigger word, talent lora url and number of images to generate.Only one front garment image is required, the rest are optional.
app.py+7-6