Spaces:
Running
Running
docs: align Space copy with deployed workflow
#1
by langgz - opened
README.md
CHANGED
|
@@ -8,19 +8,21 @@ sdk_version: 5.50.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: mit
|
| 11 |
-
short_description: "
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# FunClip:
|
| 15 |
|
| 16 |
-
Upload a video → FunASR transcribes
|
| 17 |
|
| 18 |
-
##
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
|
|
|
|
|
|
| 23 |
|
| 24 |
## Links
|
| 25 |
-
- **GitHub**: [FunClip](https://github.com/modelscope/FunClip)
|
| 26 |
- **ASR Engine**: [FunASR](https://github.com/modelscope/FunASR) | [Fun-ASR](https://github.com/FunAudioLLM/Fun-ASR)
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: mit
|
| 11 |
+
short_description: "Chinese sentence-based video clipping with FunASR"
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# FunClip: ASR-Guided Video Clipping
|
| 15 |
|
| 16 |
+
Upload a Chinese-language video → FunASR Paraformer transcribes it with sentence-level timestamps → Select one or more sentences → Export the selected segments as a clip.
|
| 17 |
|
| 18 |
+
## What This Space Does
|
| 19 |
+
- Transcribes Chinese speech with FunASR Paraformer on CPU
|
| 20 |
+
- Returns sentence-level timestamps for each recognized segment
|
| 21 |
+
- Lets you select and concatenate one or more sentences
|
| 22 |
+
- Exports the result as an MP4 with FFmpeg
|
| 23 |
+
|
| 24 |
+
Short videos provide the best interactive experience on the shared CPU runtime. For multilingual ASR and LLM-assisted smart clipping, install the full [FunClip](https://github.com/modelscope/FunClip) app locally.
|
| 25 |
|
| 26 |
## Links
|
| 27 |
+
- **GitHub**: [Star the FunClip repository](https://github.com/modelscope/FunClip)
|
| 28 |
- **ASR Engine**: [FunASR](https://github.com/modelscope/FunASR) | [Fun-ASR](https://github.com/FunAudioLLM/Fun-ASR)
|
app.py
CHANGED
|
@@ -131,12 +131,12 @@ def clip_video(video_path, sentences_json, selected_indices):
|
|
| 131 |
description_html = """
|
| 132 |
<div style="text-align: center; max-width: 850px; margin: 0 auto;">
|
| 133 |
<h1 style="font-size: 2.2em; margin-bottom: 0.1em;">✂️ FunClip</h1>
|
| 134 |
-
<p style="font-size: 1.3em; color: #444;">
|
| 135 |
<p style="font-size: 1em; color: #666;">
|
| 136 |
-
Upload a video →
|
| 137 |
</p>
|
| 138 |
<p style="font-size: 0.9em; margin-top: 0.8em;">
|
| 139 |
-
<a href="https://github.com/modelscope/FunClip" target="_blank">⭐
|
| 140 |
<a href="https://github.com/modelscope/FunASR" target="_blank">🛠️ FunASR</a> ·
|
| 141 |
<a href="https://github.com/FunAudioLLM/Fun-ASR" target="_blank">🚀 Fun-ASR</a>
|
| 142 |
</p>
|
|
@@ -146,11 +146,11 @@ description_html = """
|
|
| 146 |
how_it_works = """
|
| 147 |
### How It Works
|
| 148 |
1. **Upload** a video (any format with audio)
|
| 149 |
-
2. **Transcribe** —
|
| 150 |
3. **Select** the sentences you want to keep (by index)
|
| 151 |
4. **Clip** — FFmpeg cuts and concatenates the selected segments
|
| 152 |
|
| 153 |
-
For
|
| 154 |
"""
|
| 155 |
|
| 156 |
|
|
|
|
| 131 |
description_html = """
|
| 132 |
<div style="text-align: center; max-width: 850px; margin: 0 auto;">
|
| 133 |
<h1 style="font-size: 2.2em; margin-bottom: 0.1em;">✂️ FunClip</h1>
|
| 134 |
+
<p style="font-size: 1.3em; color: #444;">Chinese Video Clipping with FunASR</p>
|
| 135 |
<p style="font-size: 1em; color: #666;">
|
| 136 |
+
Upload a Chinese-language video → Transcribe with sentence-level timestamps → Select segments → Export a clip
|
| 137 |
</p>
|
| 138 |
<p style="font-size: 0.9em; margin-top: 0.8em;">
|
| 139 |
+
<a href="https://github.com/modelscope/FunClip" target="_blank">⭐ Star FunClip on GitHub</a> ·
|
| 140 |
<a href="https://github.com/modelscope/FunASR" target="_blank">🛠️ FunASR</a> ·
|
| 141 |
<a href="https://github.com/FunAudioLLM/Fun-ASR" target="_blank">🚀 Fun-ASR</a>
|
| 142 |
</p>
|
|
|
|
| 146 |
how_it_works = """
|
| 147 |
### How It Works
|
| 148 |
1. **Upload** a video (any format with audio)
|
| 149 |
+
2. **Transcribe** — Chinese Paraformer ASR adds sentence-level timestamps
|
| 150 |
3. **Select** the sentences you want to keep (by index)
|
| 151 |
4. **Clip** — FFmpeg cuts and concatenates the selected segments
|
| 152 |
|
| 153 |
+
For multilingual ASR and LLM-assisted smart clipping, install the full [FunClip](https://github.com/modelscope/FunClip) app locally.
|
| 154 |
"""
|
| 155 |
|
| 156 |
|