mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-10 04:19:02 +02:00
go : added wrappers to reset and print timings (#436)
This commit is contained in:
@ -64,10 +64,13 @@ func Process(model whisper.Model, path string, flags *Flags) error {
|
||||
|
||||
// Process the data
|
||||
fmt.Fprintf(flags.Output(), " ...processing %q\n", path)
|
||||
context.ResetTimings()
|
||||
if err := context.Process(data, cb); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
context.PrintTimings()
|
||||
|
||||
// Print out the results
|
||||
switch {
|
||||
case flags.GetOut() == "srt":
|
||||
|
Reference in New Issue
Block a user