ruby : tiny bug fix (#3490)
* Remove build-xcframework.sh from package * Remove unused variable * Bump version to 1.3.5 * Don't use variable before declaration
This commit is contained in:
parent
f16c12f3f5
commit
c62adfbd1e
|
|
@ -27,6 +27,7 @@ ignored_files = %w[
|
||||||
twitch.sh
|
twitch.sh
|
||||||
yt-wsp.sh
|
yt-wsp.sh
|
||||||
close-issue.yml
|
close-issue.yml
|
||||||
|
build-xcframework.sh
|
||||||
]
|
]
|
||||||
|
|
||||||
EXTSOURCES =
|
EXTSOURCES =
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,8 @@ module Whisper
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_progress(current, size)
|
def show_progress(current, size)
|
||||||
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line.size
|
line_size = 47
|
||||||
|
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line_size
|
||||||
|
|
||||||
unless @prev
|
unless @prev
|
||||||
@prev = Time.now
|
@prev = Time.now
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ class TestSegment < TestBase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_transcription_after_segment_retrieved
|
def test_transcription_after_segment_retrieved
|
||||||
params = Whisper::Params.new
|
|
||||||
segment = whisper.each_segment.first
|
segment = whisper.each_segment.first
|
||||||
assert_match(/ask not what your country can do for you, ask what you can do for your country/, segment.text)
|
assert_match(/ask not what your country can do for you, ask what you can do for your country/, segment.text)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ require_relative "extsources"
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "whispercpp"
|
s.name = "whispercpp"
|
||||||
s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
|
s.authors = ["Georgi Gerganov", "Todd A. Fisher"]
|
||||||
s.version = '1.3.4'
|
s.version = '1.3.5'
|
||||||
s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
|
s.description = %q{High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model via Ruby}
|
||||||
s.email = 'todd.fisher@gmail.com'
|
s.email = 'todd.fisher@gmail.com'
|
||||||
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue