huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.19k stars 1.04k forks source link

disable login on free plan #262

Closed Uj947nXmRqV2nRaWshKtHzTvckUUpD closed 1 year ago

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 1 year ago

until recently i was able to use huggingface (free plan) without logging in (no account). there should be no wall for people to use it and also it should be usable anonymously (even via tor) to prevent privacy concerns.

fredguth commented 1 year ago

Just adding my 2 cents here: There is also an UI incentive to do so, it is better have people using the tool and get hooked by it before asking anything, even a Login.

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 1 year ago

one idea would be to implement a rate limit (maybe already present) to prevent spam, but preferably no captcha

regarding getting people hooked, maybe it is already considered they're hooked and from here the decision. in my opinion for the AI to grow, there should never be any login or else people will go for the big brother chat gpt instead.

Apaczer commented 1 year ago

Earlier I've found it very convenient to share chats/snippets between different devices without need to login (from share url feature). It was disitnctive from other platforms for hugginface to not have a login wall at first.

nsarrazin commented 1 year ago

Hey! If you want to setup your own version without logging in you can absolutely do it, as the full stack used for huggingchat is open-sourced. The source for the generation endpoint is available from: https://github.com/huggingface/text-generation-inference and of course the front-end is available on this repo. :smile:

@Apaczer indeed, shared conversations should probably be visible without having to log in. I've opened a separate issue here.

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 1 year ago

is there a way to setup own website frontend without the login similar to how it was before? what about the legal aspects - does the license allow publishing on internet and even monetize?

fredguth commented 1 year ago

I have to test... but I guess that if you don't include OPENID_CLIENT and ...SECRET in any .env, it will not ask for login. I will check this later.

julien-c commented 1 year ago

@fredguth this is correct