Skip to content

Commit

Permalink
fix: remove lang_detect assertion (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
iantanwx committed May 30, 2023
1 parent d6981df commit 9cc4eb9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/whispercpp/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ std::vector<float> Context::lang_detect(size_t offset_ms, size_t threads) {
} else if (res == -7) {
RAISE_RUNTIME_ERROR("Failed to decode.");
} else {
assert(res == (int)lang_probs.size());
return lang_probs;
}
}
Expand Down

0 comments on commit 9cc4eb9

Please sign in to comment.