Inferring part: IndexError on the last cell of the notebook

However I didn’t change anything in the code, there’s index error as you see below. I tried to change the [1], but it didn’t work.

The code in the previous cell is giving a array-ish list: [1,0,0,1,1]

If you change the line in that cell to a text list like this:
Give your answer as a text list with 0 or 1 for each topic.

You’ll get a response similar to the video and the parsing code will work:

nasa: 1
local government: 0
engineering: 0
employee satisfaction: 1
federal government: 1