in src/huggingface_inference_toolkit/serialization/base.py [0:0]
def get_deserializer(content_type):
if content_type in content_type_mapping:
return content_type_mapping[content_type]
else:
message = f"""
Content type "{content_type}" not supported.
Supported content types are:
{", ".join(list(content_type_mapping.keys()))}
"""
raise Exception(message)