feat: upload audio, get a private Swedish transcript, discuss it (#33, ADR-033) #39
@@ -6,6 +6,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"git.d-ma.be/mathias/tapir/internal/domain"
|
||||
"git.d-ma.be/mathias/tapir/internal/errkind"
|
||||
"git.d-ma.be/mathias/tapir/internal/progress"
|
||||
)
|
||||
|
||||
@@ -101,9 +102,8 @@ func Reconcile(ctx context.Context, base, alt domain.Transcription, adj Adjudica
|
||||
rec.Errors++
|
||||
consecutive++
|
||||
if consecutive >= breakAfter {
|
||||
failure := fmt.Errorf("the model failed %d times in a row: %w", consecutive, err)
|
||||
rep.Fail("decide", failure)
|
||||
return skipped(base, rec, failure.Error()), nil
|
||||
rep.Fail("decide", err)
|
||||
return skipped(base, rec, fmt.Sprintf("the model failed %d times in a row (%s)", consecutive, errkind.Of(err))), nil
|
||||
}
|
||||
v = VerdictUnsure
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user