Spaces:
Sleeping
Sleeping
chips
commited on
Commit
·
2a98bbb
1
Parent(s):
c192f02
fix
Browse files
app.py
CHANGED
|
@@ -27,14 +27,14 @@ def greet_json():
|
|
| 27 |
|
| 28 |
@app.post("/virtualTryOn", summary="Virtual try on single call",
|
| 29 |
description="Virtual try on single call for complete outfit try on")
|
| 30 |
-
async def virtual_try_on(
|
|
|
|
| 31 |
talent_lora_url: str = Form(...),
|
| 32 |
num_images: int = 4,
|
| 33 |
top_garment_image: UploadFile = File(None),
|
| 34 |
bottom_garment_image: UploadFile = File(None),
|
| 35 |
top_back_garment_image: UploadFile = File(None),
|
| 36 |
-
bottom_back_garment_image: UploadFile = File(None)
|
| 37 |
-
background_tasks: BackgroundTasks):
|
| 38 |
"""
|
| 39 |
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.
|
| 40 |
Only one front garment image is required, the rest are optional.
|
|
|
|
| 27 |
|
| 28 |
@app.post("/virtualTryOn", summary="Virtual try on single call",
|
| 29 |
description="Virtual try on single call for complete outfit try on")
|
| 30 |
+
async def virtual_try_on(background_tasks: BackgroundTasks,
|
| 31 |
+
talent_trigger_word: str = Form(...),
|
| 32 |
talent_lora_url: str = Form(...),
|
| 33 |
num_images: int = 4,
|
| 34 |
top_garment_image: UploadFile = File(None),
|
| 35 |
bottom_garment_image: UploadFile = File(None),
|
| 36 |
top_back_garment_image: UploadFile = File(None),
|
| 37 |
+
bottom_back_garment_image: UploadFile = File(None)):
|
|
|
|
| 38 |
"""
|
| 39 |
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.
|
| 40 |
Only one front garment image is required, the rest are optional.
|