mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-13 02:33:02 +08:00
feat: improved status text on uploading
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
a8308644e0
commit
381b4fa375
@ -101,10 +101,18 @@ async def create_image_parts(
|
|||||||
|
|
||||||
# Number of images we'll send as URLs (fileData)
|
# Number of images we'll send as URLs (fileData)
|
||||||
num_url_images = min(effective_max, 10) # Vertex API max number of image links
|
num_url_images = min(effective_max, 10) # Vertex API max number of image links
|
||||||
|
upload_kwargs: dict = {"wait_label": "Uploading reference images"}
|
||||||
|
if effective_max > num_url_images:
|
||||||
|
# Split path (e.g. 11+ images): suppress per-image counter to avoid a confusing dual-fraction label.
|
||||||
|
upload_kwargs = {
|
||||||
|
"wait_label": f"Uploading reference images ({effective_max})",
|
||||||
|
"show_batch_index": False,
|
||||||
|
}
|
||||||
reference_images_urls = await upload_images_to_comfyapi(
|
reference_images_urls = await upload_images_to_comfyapi(
|
||||||
cls,
|
cls,
|
||||||
images_list,
|
images_list,
|
||||||
max_images=num_url_images,
|
max_images=num_url_images,
|
||||||
|
**upload_kwargs,
|
||||||
)
|
)
|
||||||
for reference_image_url in reference_images_urls:
|
for reference_image_url in reference_images_urls:
|
||||||
image_parts.append(
|
image_parts.append(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user