Gradio message limit is there a way?
Hello there! Suppose I have a chat UI created with gradio. Is there a way I can limit the users’ messages they can send to the model(3 per minute for example)?
2023-09-30T00:04:11Z
@freddyaboultonAny solution?
2023-10-05T18:39:05Z
Hi@nbaru,There isn’t a built-in way to do that. The easiest approach would be to implement user authentication, allowing only signed-in users to run inference. Then, you can easily implement a rate limit. You can try a prototype using user authentication via HF.Here is how to get user authentication via HF:Gradio LoginButton DocsA second option is to get users’ IP addresses and implement a rate limit through that. However, this method can be easily bypassed using VPNs or could block many users coming from the same network.Here is how to get a request IP address:Gradio Request Docs
2023-10-05T18:40:41Z
related response hereAllowing specific IPs to access my appGradioHello, 
I want to allow only specific to access my Gradio app. Is it possible to do that?
2023-10-08T23:30:54Z
Thank you!