Tried a Gradio app and a Docker Jupyter notebook, neither would load properly in Private Space but worked in Public Space. I am totally new to HuggingFace Spaces. What am I missing?
I duplicated gradio/chatinterface_streaming_echo into a Private Space and chose the Free compute, and the interface won’t load. The "Building… "icon goes away and it says “Running” but the interface just stays blank.
I duplicated that repo into my Public Space with the Free compute and it immediately loaded.
Docker Jupyter shows a huggingface 404 in the Private space but works in Public space.
What do I need to do to get it working in my Private Space? Is it a setting? Is it common to all Private Spaces?
No special changes are required to make Spaces work in Private, unless it is in conjunction with an external application or something.
Just click on the three vertical dots, select Settings, and press Make private.
This will make it a Private space.
If you press Make public, it will become a Public space.
If it does not work, then you have another problem that has nothing to do with Private.
P.S.
This worked fine when I duplicated it in Private. Maybe you just had a bad build. Sometimes there are glitches.
Also, Spaces and models that are set to Private are visible as 404 to everyone but you, unless you use a token. That’s what this feature is for.
Starting Spaces in Public and going Private- good idea! But, does that have any drawbacks security-wise? I am very interested in the SOCS compliance that huggingface hub spaces offers, does that lose anything security-wise?
Back to the Private Spaces not working:
I once again duplicated gradio/chatinterface_streaming_echo into Private and it still failed to load (as a blank App page)! However, When I go to the three dots > Settings and make that private space Public (same repo!), it WORKS. What is going on??
I am running on Chrome 129, disabled all my blockers, and even tried on both my network and a cell phone hotspot (because I have adblock on the router firewall, too).
The Build Log looks fine to me…
Private Space build (first time, did not work, did not load app):
I don’t think any inconvenience will occur, except in the case of commercial problems if the code is open, or if you mistakenly put personal information in the code.
The switch between Public and Private is just an example to isolate the problem, and it should work perfectly fine even if the code is directly duplicated in Private. In fact, it worked fine on my account.
What is going on??
I don’t know. I don’t know, but something is definitely wrong with your environment anyway.
I too usually use Chrome as my primary tool for running Spaces. As for this space, even Firefox with ad blocker works. And if the demo doesn’t work, it shouldn’t work in Public either.
Conceivably, we need to be logged in to our account to use Private Spaces, which HF is probably judging by cookies, sessions, or something like that.
If you look at your Private space and don’t get a 404, then your login is working at least minimally well. But what if there was a case where this is the halfway point?
But is there such a glitch nowadays? We’re probably fine with Private Browsing…
@not-lain Have you ever heard of such a phenomenon where only executing Private Space on a browser causes an error? I can’t find any reports of it in my search.
Cookies–brilliant! So, I run all my browsers in Strict Privacy mode with NO 3rd Party Cookies. I was able to fix it by doing this:
In Chrome I went to Settings > Privacy > Third-Party Cookies > Sites Allowed to use Third Party cookies and added an exception for [*.]huggingface.co.
So, apparently, when you Duplicate Spacedirectly in Private, it tries to create a third party cookie to enable the “App” window. But all Public spaces do not use third-party cookies? And if you go Public → to Private space, the 3rd party cookie is also not required?? (Edit - I was always logged into my account, of course, and I continue to be logged in.)
Makes me think there is something funny about Security when you go from Public → Private… But maybe that’s my tin foil hat getting too tight?
Anyway, good call, @John6666. I’ll have more security-related Q’s in the future, but this gets me off and running!