format: auto-format code [skip ci]
This commit is contained in:
+9
-7
@@ -1208,13 +1208,15 @@ def comfy_generate(
|
|||||||
elif not json_output:
|
elif not json_output:
|
||||||
console.print(f"[yellow]Could not download image: {img_path}[/yellow]")
|
console.print(f"[yellow]Could not download image: {img_path}[/yellow]")
|
||||||
|
|
||||||
all_results.append({
|
all_results.append(
|
||||||
"success": True,
|
{
|
||||||
"index": i,
|
"success": True,
|
||||||
"prompt_id": result.prompt_id,
|
"index": i,
|
||||||
"images": [str(img) for img in result.images],
|
"prompt_id": result.prompt_id,
|
||||||
"saved": str(saved_path) if saved_path else None,
|
"images": [str(img) for img in result.images],
|
||||||
})
|
"saved": str(saved_path) if saved_path else None,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
if json_output:
|
if json_output:
|
||||||
console.print_json(
|
console.print_json(
|
||||||
|
|||||||
Reference in New Issue
Block a user