Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: int() argument when using fill_in_gaps function #432

Open
Max160 opened this issue Feb 4, 2025 · 1 comment
Open

TypeError: int() argument when using fill_in_gaps function #432

Max160 opened this issue Feb 4, 2025 · 1 comment

Comments

@Max160
Copy link

Max160 commented Feb 4, 2025

Hi!

I tried to use the fill_in_gaps function for the first time, as it may be very useful in my usecase.

But it never works, always returning the following error message:

[/usr/local/lib/python3.11/dist-packages/stable_whisper/result.py](https://localhost:8080/#) in fill_in_gaps(self, other_result, min_gap, case_sensitive, strip, ignore_punctuations, verbose)
   2503         self.reassign_ids()
   2504         self._update_history(
-> 2505             f'fg={other_path}+{min_gap}+{int(case_sensitive)}+{int(strip)}+{ignore_punctuations}+{int(verbose)}'
   2506         )
   2507         return self

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'function'

Whether you're putting a WhisperResult as an argument or the path of a JSON, this error message appears every time. Isn't it due to the "strip" argument, that is a basic function in python?

jianfch added a commit that referenced this issue Feb 4, 2025
@jianfch
Copy link
Owner

jianfch commented Feb 4, 2025

Fixed after 650cc4b.

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

No branches or pull requests

2 participants