def decode_seq(script, dic):
    """Returns decription of the script (sequence) based on dictionary dic"""

    decription = ""
    ##  Convert text to indice
    for ind in script:

        #if isinstance(char, type(np.asarray([0]))) : char = char[0]
        char = dic[ind]
        decription += char

    return decription