Spaces:
Sleeping
Sleeping
chips
commited on
Commit
·
c192f02
1
Parent(s):
e571768
fixing background task issues
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ async def virtual_try_on(talent_trigger_word: str = Form(...),
|
|
| 34 |
bottom_garment_image: UploadFile = File(None),
|
| 35 |
top_back_garment_image: UploadFile = File(None),
|
| 36 |
bottom_back_garment_image: UploadFile = File(None),
|
| 37 |
-
):
|
| 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.
|
|
|
|
| 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.
|