huggingface / huggingface/speechbox

TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'

Open
#29 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
357
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am getting the following error:
![image](https://github.com/huggingface/speechbox/assets/140737044/a1b19859-9b7f-4b6f-8447-85dcb3b52234)

When I run ASR_diarization pipeline with the following video:
https://drive.google.com/file/d/1wBwAs5Ubp-70fAf7uwevEu8XFlqksQja/view?usp=sharing

It's happening because the end timestamp of the last segment is None. I found this - https://github.com/huggingface/transformers/issues/23231.

For now, I was able to suppress the error by removing None from end_timestamps array. I understand that I lose some text towards the end of the video but for my use-case, that's not a problem. I wanted to bring this to your attention for a fix in the future. Let me know if you need anything additional. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.