Skip to content

Allow local uploads without downloading the demo gallery - #243

Merged
LauraGPT merged 1 commit into
mainfrom
codex/local-clip-no-examples
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/local-clip-no-examples

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

With a cold cache and no outbound network, the Gradio 4.44.1 launcher exited before the upload page: constructing the first example gallery tried to cache its remote video. This affected local users even with an already prepared recognizer. The English walkthrough also skipped the recognition click, and the old -s True example was rejected by argparse.

  • Pass --no-examples to skip all three remote media galleries while keeping video/audio uploads, recognition and clipping. Omit the flag to keep all five demo entries. This flag does not provide model weights or disable arbitrary network traffic.
  • Both READMEs now start with an explicit local Paraformer task: upload, click ASR, copy the phrase into Text/Speaker Clipping, and play the output and check its SRT.
  • The launcher regression covers both modes without making provider calls.

Shanghai: 116 tests passed; one optional live-provider test skipped. With networking isolated, Chromium uploaded a generated three-second audiovisual input and selected the middle phrase. The downloaded 1.1-second MP4 decoded to the expected blue frames and audio; the SRT contained only the selected text. An unmatched phrase cleared both outputs. Real Gradio, upload, MoviePy and media decoding; fixture recognition rather than ASR-quality validation. No model download or tag/release change.

Keep all hosted demos in the default mode. Document a local-only gallery choice and the actual manual ASR/selection flow in both languages.

Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 4bfe58d into main Dec 2, 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