Skip to content

FunASR-powered video transcription, subtitle generation, and LLM-assisted clipping tool with a local Gradio UI.

bug fix

维石47bcc69c7ad2
diff --git a/funclip/videoclipper.py b/funclip/videoclipper.py
index a6ff23a..4384a3a 100644
--- a/funclip/videoclipper.py
+++ b/funclip/videoclipper.py
@@ -70,7 +70,7 @@ class VideoClipper():
sr, data = audio_input
data = data.astype(np.float64)
- if timestamp_list is not None:
+ if timestamp_list is None:
all_ts = []
if dest_spk is None or dest_spk == '' or 'sd_sentences' not in state:
for _dest_text in dest_text.split('#'):