Hi!
I created a fully working local Gradio app with authentication, using environmental variables for the API keys from OpenAI GPT-3. Once I replicate the app in the Spaces, the app build returns error:
“ValueError: Cannot queue with encryption or authentication enabled.” The app runs fine, if I remove the authentication from the launch-method.
My app uses a login function to pass in the launch-method: “launch(auth=login)” and it works perfectly in my local Gradio app, but not in the Spaces. I know the environmental variables are passed correctly from Spaces settings, as the API works fine without the authentication.
Is there a way to overcome this issue with the authentication?
I understand the Spaces is meant for open collaboration, so I tend to understand the authentication is less relevant. However, I wonder if there is anyway of implementing user authentication, since it is a working feature in the Gradio.
The main point for me is to know, if user authentication is possible / works in Spaces, so I could implement this “best practices” from OpenAI API.
Thanks,