From f606634d27daf67e8dd67d155ff489f9e46f4ae6 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Mon, 17 Oct 2022 22:01:33 +0900 Subject: [PATCH] Make datatype in context mandatory --- whispering/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whispering/schema.py b/whispering/schema.py index c3c12ac..16e8501 100644 --- a/whispering/schema.py +++ b/whispering/schema.py @@ -48,7 +48,7 @@ class Context(BaseModel, arbitrary_types_allowed=True): vad_threshold: float max_nospeech_skip: int - data_type: Optional[str] = "float32" + data_type: str = "float32" class ParsedChunk(BaseModel):