# FunClip v2.1.1

FunClip v2.1.1 is a patch release for reliable fresh installs, safer container startup, and more predictable transcript-driven clipping.

## Highlights

- Keep the supported Gradio 4 runtime on `starlette<1.0`. Starlette 1.x changed `Jinja2Templates.TemplateResponse` incompatibly and caused the FunClip index route to return HTTP 500 on fresh installations.
- Allow explicit `--listen` deployments to bypass Gradio's internal localhost probe without automatically enabling `share=True`. A public Gradio tunnel is created only when the user passes `--share`.
- Match requested clipping text case-insensitively while preserving the original transcript text and timestamps in generated clips and subtitles.
- Add MiniMax M2.7 and MiniMax M2.7-highspeed to the OpenAI-compatible LLM routing used for transcript-driven clipping.
- Retain Fun-ASR-Nano, SenseVoice, Paraformer, TwelveLabs Pegasus, and the existing community API fallback paths.

## Install or upgrade

Download either source archive below, verify it with `SHA256SUMS`, extract it, and install the declared dependencies:

```bash
sha256sum -c SHA256SUMS --ignore-missing
pip install -U -r requirements.txt
python funclip/launch.py
```

For a container or remote host, bind all interfaces explicitly:

```bash
python funclip/launch.py --listen
```

Add `--share` only when you intentionally want a public Gradio sharing URL. Windows users can verify a downloaded archive with `Get-FileHash -Algorithm SHA256` and compare it with `SHA256SUMS`.

FunClip's Fun-ASR-Nano, SenseVoice, and subtitle compatibility paths continue to require `funasr>=1.3.29`.

## Assets

- `FunClip-2.1.1.tar.gz`: versioned source archive for Linux and macOS workflows.
- `FunClip-2.1.1.zip`: versioned source archive for Windows and general-purpose extraction.
- `SHA256SUMS`: SHA-256 digests for both archives.

The archives contain the tracked FunClip application source, documentation, and dependency manifest. Runtime dependencies and model weights are not bundled; model weights are not bundled because each model retains its own license and distribution terms.

## Validation

- Gradio 4.31.3 and 4.44.1 index-route smoke tests return HTTP 200 with FastAPI 0.141.1 and Starlette 0.52.1.
- The maintained repository suite passes 67 tests; the only skipped case is the live TwelveLabs test requiring an external API key.
- Release assets are built twice and compared byte-for-byte before publication.

## Changes since v2.1.0

See the [full changelog](https://github.com/modelscope/FunClip/compare/v2.1.0...v2.1.1).

---

FunClip v2.1.1 是面向新安装、容器部署与文本剪辑稳定性的补丁版本。该版本将 Gradio 4 的运行环境约束为 `starlette<1.0`，避免首页模板返回 HTTP 500；显式 `--listen` 只跳过容器内 localhost 探测，不会自动开启 `share=True`，只有用户主动传入 `--share` 才创建公网链接。同时，文本剪辑匹配改为大小写不敏感，并新增 MiniMax M2.7 与 MiniMax M2.7-highspeed 路由。下载 `tar.gz` 或 `zip` 后请先使用 `SHA256SUMS` 校验，再执行 `pip install -U -r requirements.txt`。归档包含 Git 已跟踪的应用源码、文档和依赖清单，不包含运行依赖或模型权重。
