lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
41.38k stars 5.86k forks source link

[Bug]: Can't deploy to hugging face spaces. #2511

Closed AndrewMTA5 closed 8 months ago

AndrewMTA5 commented 8 months ago

Checklist

What happened?

Trying to deploy fooocus to a hugging face space but when I use gradio deploy it won't let me set share=True. I'd like to use it in a webapp and have read over the gradio documentation but can't find a solution.

Steps to reproduce the problem

gradio deploy

What should have happened?

Should deploy and be available permanently on huggingface spaces

What browsers do you use to access Fooocus?

No response

Where are you running Fooocus?

None

What operating system are you using?

No response

Console logs

-

Additional information

No response

mashb1t commented 8 months ago

@AndrewMTA5 this is 99% not an issue of Fooocus as we're using Gradio core share functionality, and also HuggingFace might block socket connections / tunnelling from spaces to gradio.live. Have you checked HF space logs?

You most likely don't need to set --share as --listen (if even needed) should be sufficient for the space to connect. Please also select either preset Gradio or Docker.

EDIT: Where has the issue been reported before? Please reference the other issue, thanks!

mashb1t commented 8 months ago

Also see https://github.com/lllyasviel/Fooocus/discussions/2512