Skip to content

Commit

Permalink
Fix support for early version of Invoke AI #36
Browse files Browse the repository at this point in the history
  • Loading branch information
receyuki committed Aug 26, 2023
1 parent 0422e2e commit f272922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sd_prompt_reader/image_data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def _ed_format(self):
def _invoke_metadata(self):
metadata = json.loads(self._info.get("sd-metadata"))
image = metadata.get("image")
prompt = image.get("prompt")
prompt = image.get("prompt")[0].get("prompt") if isinstance(image.get("prompt"), list) else image.get("prompt")
prompt_index = [prompt.rfind("["), prompt.rfind("]")]

# w/ neg
Expand Down

0 comments on commit f272922

Please sign in to comment.