Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wmdigit_video_cut
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
wmdigit_video_cut
Commits
5f516671
Commit
5f516671
authored
Nov 09, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
dfc41839
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
wmdigit_transcribe.py
app/video_cut/autocut/wmdigit_transcribe.py
+2
-2
load_args.py
app/video_cut/load_args.py
+1
-0
No files found.
app/video_cut/autocut/wmdigit_transcribe.py
View file @
5f516671
...
...
@@ -12,10 +12,10 @@ from .type import WhisperMode, SPEECH_ARRAY_INDEX
class
Transcribe
:
def
__init__
(
self
,
args
,
whisper_
model
):
def
__init__
(
self
,
args
,
model
):
self
.
args
=
args
self
.
sampling_rate
=
16000
self
.
whisper_model
=
whisper_
model
self
.
whisper_model
=
model
self
.
vad_model
=
None
self
.
detect_speech
=
None
...
...
app/video_cut/load_args.py
View file @
5f516671
...
...
@@ -140,5 +140,6 @@ def main_args(logger):
logger
.
info
(
f
'load whisper_model: {args.whisper_model} device: {args.device}'
)
import
whisper
whisper_model
=
whisper
.
load_model
(
args
.
whisper_model
,
args
.
device
)
logger
.
info
(
f
'done.'
)
return
args
,
whisper_model
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment