Skip to content

Commit

Permalink
Update ultravox/model/ultravox_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Farzad Abdolhosseini <[email protected]>
  • Loading branch information
saeeddhqan and farzadab authored Nov 20, 2024
1 parent feb2394 commit 93164a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ultravox/model/ultravox_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class ModifiedWhisperEncoder(
base_model_prefix = "model.encoder"
_no_split_modules = ["WhisperEncoderLayer"]

def init_latency_mask(self, audio_latency_block_size: int, dtype: torch.float):
def init_latency_mask(self, audio_latency_block_size: int, dtype: torch.dtype):
if audio_latency_block_size is None:
self.audio_streaming_mask = None
return
Expand Down

0 comments on commit 93164a8

Please sign in to comment.