Skip to content

feat(llm): add auth for fastapi and gradio#70

Merged
imbajin merged 3 commits intoapache:mainfrom
ChenZiHong-Gavin:auth
Aug 20, 2024
Merged

feat(llm): add auth for fastapi and gradio#70
imbajin merged 3 commits intoapache:mainfrom
ChenZiHong-Gavin:auth

Conversation

@ChenZiHong-Gavin
Copy link
Copy Markdown
Collaborator

  1. add auth to gradio(using auth provided by gradio)
    auth – If provided, username and password (or list of username-password tuples) required to access the gradio app. Can also provide function that takes username and password and returns True if valid login.
    refer: https://www.gradio.app/main/docs/gradio/blocks
  2. add auth to fastapi(using APIRouter)
    refer: https://fastapi.tiangolo.com/reference/apirouter/#fastapi.APIRouter

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Aug 19, 2024
@github-actions github-actions Bot added the llm label Aug 19, 2024
@imbajin imbajin merged commit 4ba34bc into apache:main Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request llm size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants