webui: add prompt output to console (#1031)

* webui: add prompt output to console

show the user what prompt is currently being rendered

* fix prompt print location
This commit is contained in:
M 2022-09-11 12:21:38 -07:00 committed by GitHub
parent c3d12d9b14
commit 9f8a7a61ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -999,6 +999,7 @@ def process_images(
job_info.job_status = f"Processing Iteration {n+1}/{n_iter}. Batch size {batch_size}"
for idx,(p,s) in enumerate(zip(prompts,seeds)):
job_info.job_status += f"\nItem {idx}: Seed {s}\nPrompt: {p}"
print(f"Current prompt: {p}")
if opt.optimized:
modelCS.to(device)