Update Postive_magic as a dict from list

#8
by voidcoder - opened

Postive_magic is a dict with en/cn mapping to prompt enhancement. It was written as a list causing syntax errors.

came to do the same! 👏

positive_magic = [
"en": "Ultra HD, 4K, cinematic composition." # for english prompt,
"zh": "超清,4K,电影级构图" # for chinese prompt,
]

Needs to be:

positive_magic = {
"en": "Ultra HD, 4K, cinematic composition.", # <-- please note the comma before the hash, it's also needed for the dict. for english prompt,
"zh": "超清,4K,电影级构图" # for chinese prompt,
}

How to update the commit changes? HF UI is not so untuititve.
Created another PR https://huggingface.co/Qwen/Qwen-Image/discussions/36

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment