This comment has been hidden
Justin-Choo changed pull request status to closed
Yntec changed pull request status to open
Justin-Choo changed pull request status to closed
Justin-Choo changed pull request status to open

Do you have example code to use Negative Prompts via the inference API? I know it's possible but have not seen it done yet.

Ah...trying to leave a comment😓
But...whatever, I mean, if this space can add a function to send negative prompts to the diffusers, it might be better...
Don't mind me if this is an unreasonable request
Just a beginner here😓

Sorry...🥲

It's not unreasonable, we just need to define a negative prompt textbox, then send it to the inference api along the prompt and model, and it would work! But nobody has done it yet, the ones that have it on their apps rely on the stable diffusion pipeline, but it uses the space's CPU to generate the images, which is SLOOOW.
This is an open problem, here's example code from when negative prompts were implemented:
https://discuss.huggingface.co/t/negative-prompts-for-the-inference-api/31943/3
I just don't know how to add them to the app! 😅

Oh! Thanks! I'll check on that!🤩

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

Sign up or log in to comment