We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963f728 commit 4673dcbCopy full SHA for 4673dcb
src/huggingface_inference_toolkit/serialization/base.py
@@ -37,6 +37,9 @@
37
class ContentType:
38
@staticmethod
39
def get_deserializer(content_type: str, task: str):
40
+ if not content_type:
41
+ message = f"No content type provided and no default one configured."
42
+ raise Exception(message)
43
if content_type.lower().startswith("application/octet-stream"):
44
if "audio" in task or "speech" in task:
45
return Audioer
0 commit comments