Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lora is not shown up in prompt #2

Open
speaknowpotato opened this issue Jun 28, 2023 · 2 comments
Open

lora is not shown up in prompt #2

speaknowpotato opened this issue Jun 28, 2023 · 2 comments

Comments

@speaknowpotato
Copy link

speaknowpotato commented Jun 28, 2023

hi @huchenlei ,

when i add lora to my prompt,
image

it will not show up in the API payload,
image

But if i click Copy button, and copy the json payload to clipboard, it does have Lora inside the prompt.
something like this,

    "prompt": "blue hair <lora:ghibli_style_offset:1>  red eye",

Is this expected or a bug? thanks!

@huchenlei
Copy link
Owner

I think it is a problem with jsonTree library. It does not do the escape of special chars. I probably need to handle chars like "<" and ">" manually.

@ClothingAI
Copy link

I confirm.
But least it IS copied when we copy it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants