Here's a Python script that takes a list or set and returns the other type:

```py
def invert_sl(model: list | set):
    if type(model) is list:
        return set(model)
    elif type(model) is set:
        return list(model)

print(invert_sl([1, 2, 3, 4, 5, 5]))  # output: {1, 2, 3, 4, 5}
print(invert_sl({1, 2, 3, 4, 5, 5}))  # output: [1, 2, 3, 4, 5]
```

The function checks the type of `model`, then, if it is a list, it uses the set() type conversion, or if it is a set, it uses the list() type conversion. It is important to note that when you convert from list to set, you lose the number and location of each element within the list. Be aware that if your list contains non-hashable objects, the function will throw an error an error such as `unhashable type: 'list'`.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence