Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
airtanscropt
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
SexHackMe
airtanscropt
Commits
252525b0
Commit
252525b0
authored
Dec 11, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove qwen_omni_utils import and set audio inputs directly
parent
6b2dfd39
Pipeline
#208
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
transcript.py
transcript.py
+4
-3
No files found.
transcript.py
View file @
252525b0
...
...
@@ -77,8 +77,7 @@ def main():
model
=
Qwen2_5OmniForConditionalGeneration
.
from_pretrained
(
"Qwen/Qwen2.5-Omni-7B"
,
torch_dtype
=
"auto"
,
device_map
=
"auto"
,
trust_remote_code
=
True
)
processor
=
Qwen2_5OmniProcessor
.
from_pretrained
(
"Qwen/Qwen2.5-Omni-7B"
,
trust_remote_code
=
True
)
# Import utils after loading model
from
qwen_omni_utils
import
process_mm_info
# Note: qwen_omni_utils not available, using direct processing
# Load audio
audio
,
sr
=
librosa
.
load
(
audio_file
,
sr
=
16000
)
...
...
@@ -107,7 +106,9 @@ def main():
# Preparation for inference
text
=
processor
.
apply_chat_template
(
conversation
,
add_generation_prompt
=
True
,
tokenize
=
False
)
audios
,
images
,
videos
=
process_mm_info
(
conversation
,
use_audio_in_video
=
False
)
audios
=
[
audio_chunk
]
images
=
[]
videos
=
[]
inputs
=
processor
(
text
=
text
,
audio
=
audios
,
images
=
images
,
videos
=
videos
,
return_tensors
=
"pt"
,
padding
=
True
,
use_audio_in_video
=
False
)
inputs
=
inputs
.
to
(
model
.
device
)
.
to
(
model
.
dtype
)
...
...
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