dmarx / video-killed-the-radio-star

Notebook and tools for end-to-end automation of music video production with generative AI
https://colab.research.google.com/github/dmarx/video-killed-the-radio-star/blob/main/Video_Killed_The_Radio_Star_Defusion.ipynb#scrollTo=oPbeyWtesAoh
MIT License
196 stars 35 forks source link

crashes #128

Open ericflesher opened 1 year ago

ericflesher commented 1 year ago

The code crashes every time more or less here, regardless of what YouTube video link I give it.


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'

architolk commented 1 year ago

Seems that the API for whisper has changed again, I changed the code accordingly and this worked:

options = dict( highlight_words=False, max_line_width=None, max_line_count=None ) writer.write_result( whispers[k], f, options )