Commit ·
f97271b
1
Parent(s): f86262e
refactor: Simplify output handling in submit_function_flux by removing return_dict
Browse files- Removed the `return_dict` parameter from the `submit_function_flux` function, streamlining the output to directly return the first image from the results. This change enhances code clarity and reduces complexity in the function's return value management.
332 unmodified lines333334335336337338339340341332 unmodified linesmask_image=mask,num_inference_steps=num_inference_steps,guidance_scale=guidance_scale,generator=generator,return_dict=False,)[0]# Post-processingmasked_person = vis_mask(person_image, mask)332 unmodified lines333334335336337338339340332 unmodified linesmask_image=mask,num_inference_steps=num_inference_steps,guidance_scale=guidance_scale,generator=generator).images[0]# Post-processingmasked_person = vis_mask(person_image, mask)
app.py+2-3