Skip to content

Commit

Permalink
assertion mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
saeeddhqan authored Nov 21, 2024
1 parent 9fc2732 commit 058d99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ultravox/model/ultravox_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _create_audio_tower(
config.audio_latency_block_size, dtype=config.torch_dtype
)
else:
assert config.audio_latency_block_size not in (
assert config.audio_latency_block_size in (
None,
0,
), "only whisper audio tower supports audio latency masking, got non-zero value for 'audio_latency_block_size'"
Expand All @@ -305,7 +305,7 @@ def _create_audio_tower(
config.audio_latency_block_size, dtype=config.torch_dtype
)
else:
assert config.audio_latency_block_size not in (
assert config.audio_latency_block_size in (
None,
0,
), "only whisper audio tower supports audio latency masking, got non-zero value for 'audio_latency_block_size'"
Expand Down

0 comments on commit 058d99d

Please sign in to comment.