Skip to content

Fix Gradio returning HTTP 500 before video upload - #239

Merged
LauraGPT merged 1 commit into
mainfrom
codex/funclip-gradio-file-schema
Dec 1, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/funclip-gradio-file-schema

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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.

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>
@LauraGPT
LauraGPT merged commit 1f27f0c into main Dec 1, 2026
2 checks passed
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.

1 participant