Skip to content

Conversation

freddyaboulton
Copy link
Collaborator

@freddyaboulton freddyaboulton commented Oct 7, 2025

Description

Closes: #11875

AI Disclosure

We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.

  • I used AI to... [fill here]
  • I did not use AI

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Testing and Formatting Your Code

  1. PRs will only be merged if tests pass on CI. We recommend at least running the backend tests locally, please set up your Gradio environment locally and run the backed tests: bash scripts/run_backend_tests.sh

  2. Please run these bash scripts to automatically format your code: bash scripts/format_backend.sh, and (if you made any changes to non-Python files) bash scripts/format_frontend.sh

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 7, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website building...
Storybook ready! Storybook preview

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/6500089c1bb34a9d3b282d0212e900c932c5f3ed/gradio-5.49.1-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@6500089c1bb34a9d3b282d0212e900c932c5f3ed#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/6500089c1bb34a9d3b282d0212e900c932c5f3ed/gradio-client-1.19.1.tgz

@freddyaboulton freddyaboulton marked this pull request as ready for review October 8, 2025 16:51
Copy link
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR @freddyaboulton! Overall looks good to me. My only stylistic feedback is that I think the validator functions should live in their own module instead of being part of the main gradio namespace.

Instead of: gr.is_audio_correct_length, perhaps gr.validators.check_audio_length()

@freddyaboulton freddyaboulton merged commit 081126e into 6.0-dev Oct 8, 2025
8 checks passed
@freddyaboulton freddyaboulton deleted the 11875-audio-video-validators branch October 8, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants