Skip to content

Commit

Permalink
fixed save_as_json() for CLI (#216)
Browse files Browse the repository at this point in the history
-fixed #216
  • Loading branch information
jianfch committed Oct 3, 2023
1 parent da33bf5 commit 1732ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable_whisper/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.11.5"
__version__ = "2.11.6"
5 changes: 3 additions & 2 deletions stable_whisper/whisper_word_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,8 +1311,9 @@ def cancel_overwrite():
for path in output_paths:
make_parent(path)
save_method = getattr(result, OUTPUT_FORMATS_METHODS[splitext(path)[-1][1:]])
save_options = dict(filepath=path)
save_options.update(isolate_useful_options(args, save_method))
args['filepath'] = path
args['path'] = path
save_options = isolate_useful_options(args, save_method)
update_options_with_args('save_option', save_options)
call_method_with_options(save_method, save_options)

Expand Down

0 comments on commit 1732ac0

Please sign in to comment.