Does the error show exactly what line it errors-out on? I’m guessing it was on show(orig_image, title=sentence) but I don’t see a function definition for show. Do you have that somewhere by any chance?