buildspace / buildspace-projects

The home of our open-source projects.
https://buildspace.so/projects
Creative Commons Attribution Share Alike 4.0 International
3.01k stars 1.09k forks source link

Add image variations code and description #1572

Closed harrybaines closed 1 year ago

harrybaines commented 1 year ago

In this PR I've added a subsection into Section 4 which describes how to add a new header into the POST request sent to the Hugging Face API endpoint, which allows you to generate variations from your prompt and prevents fetching the image you generated previously from the cache.

I found the solution to this through the network tab of Chrome DevTools, and noticed the extra header was added to create new images in the Hugging Face UI when testing the model.

Feel free to change the wording or let me know if there's something else I can add.

helloitsm3 commented 1 year ago

@all-contributors please add @harrybaines for docs

allcontributors[bot] commented 1 year ago

@helloitsm3

I've put up a pull request to add @harrybaines! :tada: