Super fun idea! That syllables package might not be robust enough for this purpose. Even in its documentation's super simple code samples, it estimates the word estimate wrong haha. I think that's somewhat meant to be an admission by the author that it is an estimate.
>>> import syllables
>>> syllables.estimate('estimate')
4
Doesn't matter in the context of making a fun web app though, cool idea!