I think the problem is it generates content, but not very high quality content. It's not gripping enough from the beginning, just sort of drags out. It could be that the engine works right, just that the input is garbage, as often happens with AI.
But maybe something about it could be engineered a little better. From the code it looks like it's just generating most of it in a single blast. But I wonder if it can be iterated into chunks.
e.g. split it into the Three Act Structure.
1. Protagonist really wants something. Faces an obstacle. Tries everything and gets stuck. 2. Protagonist makes sacrifices. Gets even more stuck. Something that the protagonist faces in Act 1 ends up being the key, often a mentor or a sacrifice that Protagonist didn't expect. 3. Denouement.
You could probably generate a want and an obstacle. I kind of did a prototype of that here (feel free to steal ideas): https://random-character-generator.com/
Then do the same with the other characters. Generate relationships.
Then some iteration where the AI writes those characters into those scripts.
Probably another where it writes up scenes/places/setting later. The characters are then colored in and put into these places.
An editing run where it removes unnecessary scenes or scenes that didn't work. Or leave this to the humans.
Anyway, it is very good work. It's nice that it's open source, may contribute to it some day.