Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
whisper-asr-webservice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schwertgen
whisper-asr-webservice
Commits
252e5a7a
Unverified
Commit
252e5a7a
authored
7 months ago
by
Aidan Crowther
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into add-vram-flush
parents
f01ea254
6d074b2e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
app/openai_whisper/core.py
+1
-1
1 addition, 1 deletion
app/openai_whisper/core.py
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
252e5a7a
...
@@ -7,6 +7,7 @@ Unreleased
...
@@ -7,6 +7,7 @@ Unreleased
### Added
### Added
-
Timeout configured to allow model to be unloaded when idle
-
Timeout configured to allow model to be unloaded when idle
-
Set mel generation to adjust n_dims automatically to match the loaded model
[1.6.0] (2024-10-06)
[1.6.0] (2024-10-06)
--------------------
--------------------
...
...
This diff is collapsed.
Click to expand it.
app/openai_whisper/core.py
+
1
−
1
View file @
252e5a7a
...
@@ -90,7 +90,7 @@ def language_detection(audio):
...
@@ -90,7 +90,7 @@ def language_detection(audio):
audio
=
whisper
.
pad_or_trim
(
audio
)
audio
=
whisper
.
pad_or_trim
(
audio
)
# make log-Mel spectrogram and move to the same device as the model
# make log-Mel spectrogram and move to the same device as the model
mel
=
whisper
.
log_mel_spectrogram
(
audio
).
to
(
model
.
device
)
mel
=
whisper
.
log_mel_spectrogram
(
audio
,
model
.
dims
.
n_mels
).
to
(
model
.
device
)
# detect the spoken language
# detect the spoken language
with
model_lock
:
with
model_lock
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment