mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Revert "Image: Add the LLM-generated prompt to the API result"
This reverts commit c7ad28a4cd.
This commit is contained in:
parent
3ef428efaa
commit
56f2a9512f
2 changed files with 3 additions and 15 deletions
|
|
@ -856,13 +856,7 @@ def generate(state, save_images=True):
|
|||
if magic_suffix.strip(", ") not in clean_prompt:
|
||||
gen_kwargs["prompt"] = clean_prompt + magic_suffix
|
||||
|
||||
batch_results = shared.image_model(**gen_kwargs).images
|
||||
|
||||
# Store the modified prompt in the metadata
|
||||
for img in batch_results:
|
||||
img.info["revised_prompt"] = clean_prompt
|
||||
|
||||
result_holder.extend(batch_results)
|
||||
result_holder.extend(shared.image_model(**gen_kwargs).images)
|
||||
gen_kwargs["prompt"] = clean_prompt # restore
|
||||
except Exception as e:
|
||||
error_holder.append(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue