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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Docs do not support auth #8700

Closed
1 task done
omerXfaruq opened this issue Jul 4, 2024 · 2 comments 路 Fixed by #8720
Closed
1 task done

API Docs do not support auth #8700

omerXfaruq opened this issue Jul 4, 2024 · 2 comments 路 Fixed by #8720
Labels
bug Something isn't working enhancement New feature or request

Comments

@omerXfaruq
Copy link
Contributor

Describe the bug

Hello, API docs are not aware of demo being authenticated.

Have you searched existing issues? 馃攷

  • I have searched and found no existing issues

Reproduction

import gradio as gr

def hello(msg):
    return f"{msg} hello"

with gr.Blocks() as app:
    txt1 = gr.Textbox()
    txt2 = gr.Textbox()
    txt1.change(hello, txt1, txt2)

app.launch(auth=("gradio", "gradio"))

Screenshot

No response

Logs

No response

System Info

macos
gradio == 4.32.2

Severity

Blocking usage of gradio

@omerXfaruq omerXfaruq added the bug Something isn't working label Jul 4, 2024
@abidlabs
Copy link
Member

abidlabs commented Jul 4, 2024

Thanks @omerXfaruq just to confirm, you mean the Clients code needs to be updated to include auth=?

@abidlabs abidlabs added the enhancement New feature or request label Jul 4, 2024
@omerXfaruq
Copy link
Contributor Author

Yes, but not just for clients, also for curl. I couldn't generate curl documentation with this code snippet. But curl needs an update as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
2 participants