freddyaboulton / gradio-tools

MIT License
562 stars 47 forks source link

Couldn't get readme example to work - workspaces wouldn't load #31

Closed brettimus closed 1 year ago

brettimus commented 1 year ago

Could you add documentation on how to configure/use your own stable diffusion models? I got timeouts when trying to connect to the models that the stable diffusion tool relies on

Thanks for this project btw! Looks really cool and fits well with something I want to prototype

freddyaboulton commented 1 year ago

Hi @brettimus ! Thanks for the feedback.

Normally, you can create your own version of the space via grc.Client("", hf_token="....", duplicate=True) however that will not work for the stable diffusion space since there are some environment variables set in that space that will not be copied over.

Let me think on this and get back to you!

giannisanni commented 1 year ago

I ran in to an issue when using the stable diffusion tool today, it worked fine until then. It seems it is trying to connect to https://huggingface.co/api/spaces/gradio-client-demos/stable-diffusion. This causes a gateway time-out error. My question is: shouldn’t it connect to https://huggingface.co/spaces/gradio-client-demos/stable-diffusion instead?

freddyaboulton commented 1 year ago

Hi @giannisanni ! I think the issue with the connection is that hugging face spaces went down briefly this morning. Should be back up now!

freddyaboulton commented 1 year ago

Hi @brettimus !

gradio-tools 0.0.9 is now released. This includes a new stable diffusion tool that can be easily duplicated when you pass in your own hf_token, i.e. tool = StableDiffusionTool(hf_token="...", duplicate=True). That will create your own private version of the space. You can then upgrade the hardware. This should make it easier to avoid timeouts.

brettimus commented 1 year ago

Thanks! That's awesome. Appreciate the quick patch