Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Clients connect to Spaces with Gradio auth #3805

Closed
abidlabs opened this issue Apr 10, 2023 · 7 comments
Closed

Let Clients connect to Spaces with Gradio auth #3805

abidlabs opened this issue Apr 10, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request gradio_client Related to the one of the gradio client libraries

Comments

@abidlabs
Copy link
Member

Right now, the Python Client can't connect to Spaces or other hosted apps with auth enabled. Let's enable that

@abidlabs abidlabs added enhancement New feature or request gradio_client Related to the one of the gradio client libraries labels Apr 10, 2023
@justinzyw
Copy link

looking forward to the release of this function

@freddyaboulton freddyaboulton self-assigned this Jun 20, 2023
@abidlabs abidlabs changed the title Let Python Client connect to Spaces with Gradio auth Let Clients connect to Spaces with Gradio auth Sep 1, 2023
@tomsoderlund
Copy link

Following this, also interested

@freddyaboulton
Copy link
Collaborator

This got done in gradio 4.0 by @aliabid94. Closing!

@wujohns
Copy link

wujohns commented Nov 7, 2023

so...how to use it

@ggoonnzzaallo
Copy link

Hey @aliabid94 , would you mind sharing your implementation?

@PawKanarek
Copy link

@ggoonnzzaallo do you know how to implement client with authentication? CC @aliabid94

@PawKanarek
Copy link

Oh, i had the bad version of gradio, some of dependencies requires pydantic < 2.0, and gradio 4.0 requires >= 2.0. So I cannot use it sadly :( (but i will try to hack my way into it :D)

The api to implement auth in client is here:

auth: tuple[str, str] | None = None,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gradio_client Related to the one of the gradio client libraries
Projects
None yet
Development

No branches or pull requests

7 participants