def renderSinglePage(
                    inputData, 
                    targetData, 
                    questionIdict, 
                    ansIdict, 
                    urlDict,
                    iPage=0, 
                    numPages=1,
                    topK=10,
                    modelOutputs=None,
                    modelNames=None,
                    questionIds=None):
    htmlList = []
    htmlList.append('<html><head>\n')
    htmlList.append('<style>%s</style>' % renderCss())
    htmlList.append('</head><body>\n')
    htmlList.append('<table>')
    imgPerRow = 4
    htmlList.append(renderMenu(iPage, numPages))
    for n in range(inputData.shape[0]):
        if np.mod(n, imgPerRow) == 0:
            htmlList.append('<tr>')
        imageId = inputData[n, 0, 0]
        imageFilename = urlDict[imageId - 1]
        question = it.decodeQuestion(inputData[n], questionIdict)

        qid = questionIds[n] if questionIds is not None else n
        topAnswers, topAnswerScores = pickTopAnswers(
                                ansIdict, 
                                n,
                                topK=topK,
                                modelOutputs=modelOutputs, 
                                modelNames=modelNames,
                                questionIds=questionIds)
        htmlList.append(renderSingleItem(
                                imageFilename, 
                                qid, 
                                question, 
                                ansIdict[targetData[n, 0]], 
                                topAnswers=topAnswers, 
                                topAnswerScores=topAnswerScores, 
                                modelNames=modelNames))

        if np.mod(n, imgPerRow) == 1 - imgPerRow:
            htmlList.append('</tr>')
    htmlList.append('</table>')
    htmlList.append(renderMenu(iPage, numPages))
    htmlList.append('</body></html>')
    return ''.join(htmlList)
dataset/ETHPy150Open renmengye/imageqa-public/src/imageqa_render.py/renderSinglePage/swapped operands of `-`