Closed sheriffdude closed 1 year ago
I’m getting the same error. Fix was listed under a separate similar issue. You need to change the whisper options to this:
options = dict(
highlight_words=False,
max_line_width=None,
max_line_count=None
)
...and the "writer.write_result" line under the "save transcriptions" section:
writer.write_result(
whispers[k],
f,
options
)
It's still pretty touchy. I had to restart the runtime occasionally throughout to get all the way through.
On Tue, Apr 18, 2023 at 12:32 PM cupcakev3 @.***> wrote:
writer.write_result( whispers[k], f, options
still giving me an error
— Reply to this email directly, view it on GitHub https://github.com/dmarx/video-killed-the-radio-star/issues/131#issuecomment-1513555154, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYTWBVKVRIMVBHPMYKXDP3XB3F2TANCNFSM6AAAAAAW5MCUAU . You are receiving this because you commented.Message ID: @.***>
This replaces the current "options" code within this section:
Replace this with what I shared:
options = whisper.DecodingOptions(
language='en',
)
On Tue, Apr 18, 2023 at 11:32 AM cupcakev3 @.***> wrote:
maybe this is a dumb question but where do you specifically insert options = dict( highlight_words=False, max_line_width=None, max_line_count=None )
— Reply to this email directly, view it on GitHub https://github.com/dmarx/video-killed-the-radio-star/issues/131#issuecomment-1513472358, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYTWBRVNJBYVB4SMPW3OVTXB262HANCNFSM6AAAAAAW5MCUAU . You are receiving this because you commented.Message ID: @.***>
TypeError Traceback (most recent call last) in <cell line: 155>()
216 with open(outpath,'w') as f:
217 # to do: upstream PR to control verbosity
--> 218 writer.write_result(
219 whispers[k],
220 file=f,
TypeError: write_result() missing 1 required positional argument: 'options'
any help on this i have tried different videos with no luck .i did make 2 videos with this ..now even using the same link to a video same error