Repository navigation
Fix Gradio returning HTTP 500 before video upload - #239
Merged
Merged
Conversation
Constrain the Pydantic schema version and exercise a real video-to-file event in the startup test. Use the application constraints in CI. Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User impact: Gradio 4 can return HTTP 500 on the first page load, before anyone can select a video. Its client 1.3.0 treats a boolean file-schema field as a mapping. Our old Markdown-only startup test never constructed a file API schema. This is a UI dependency issue, not a missing ASR checkpoint.
Fix: constrain Pydantic to the supported 2.x series before 2.11, exercise a Video input and a File output connected to a button, and install the test stack under the application's actual constraints. English/Chinese troubleshooting covers the specific traceback without asking users to reset their environment or replace weights.
Validation: on Shanghai Linux / Python 3.12, the file-component regression failed with 2.11.0 and 2.14.2 and passed with 2.10.6. The full application requirements resolved in the private test environment and pip check passed. Full suite: 111 passed, 1 optional live provider skipped. A Chromium test used a real Gradio app mounted in an isolated network namespace over local Unix transport, a generated 128x96 three-second red/blue/green MP4 with audio, and a fixed recognition response. Selecting 晚 returned the blue interval as a 1.1-second H.264/AAC file (default 100 ms end padding), with audible samples and just 晚 in the clipped SRT. An unmatched selection cleared the previous output. No public service, provider, pretrained model, or user recording was used. This is not ASR quality evidence or confirmation of the cause of #235.