You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run the json_writer, it is not possible using your package, as the results dictionary contains tensors which are not JSON serializable.
`from whisper_at.utils import get_writer
json_writer = get_writer("json", ".")
writer_args = {"highlight_words": False, "max_line_count": None, "max_line_width": None}
json_writer(result, "test", writer_args)
TypeError: Object of type Tensor is not JSON serializable`
The simple solution would be to pop the audio_tags entry and to creater a new writer for the audio tags, but any other alternative workaround is appreciated.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
When I try to run the json_writer, it is not possible using your package, as the
results
dictionary contains tensors which are not JSON serializable.The simple solution would be to pop the
audio_tags
entry and to creater a new writer for the audio tags, but any other alternative workaround is appreciated.Thanks!
The text was updated successfully, but these errors were encountered: