Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
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
vidai
Commits
cbb207ce
Commit
cbb207ce
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix list index out of range error in worker_analysis.py when msg_id lacks '_'
parent
7fe399c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
worker_analysis.py
vidai/worker_analysis.py
+6
-3
No files found.
vidai/worker_analysis.py
View file @
cbb207ce
...
...
@@ -60,7 +60,8 @@ class BackgroundPing:
self
.
comm
=
comm
self
.
running
=
False
self
.
thread
=
None
self
.
job_id_int
=
int
(
job_id
.
split
(
'_'
)[
1
])
if
job_id
else
None
parts
=
job_id
.
split
(
'_'
)
if
job_id
else
[]
self
.
job_id_int
=
int
(
parts
[
1
])
if
len
(
parts
)
>
1
else
0
def
start
(
self
):
"""Start the background ping thread."""
...
...
@@ -231,7 +232,8 @@ def check_job_cancelled(job_id):
def
analyze_media
(
media_path
,
prompt
,
model_path
,
interval
=
10
,
job_id
=
None
,
comm
=
None
):
"""Analyze media using dynamic model loading."""
job_id_int
=
int
(
job_id
.
split
(
'_'
)[
1
])
if
job_id
else
None
parts
=
job_id
.
split
(
'_'
)
if
job_id
else
[]
job_id_int
=
int
(
parts
[
1
])
if
len
(
parts
)
>
1
else
0
if
get_debug
():
log_message
(
f
"DEBUG: Starting analyze_media for job {job_id_int}, media_path={media_path}"
)
...
...
@@ -564,7 +566,8 @@ def worker_process(backend_type: str):
model_path
=
data
.
get
(
'model_path'
,
'Qwen/Qwen2.5-VL-7B-Instruct'
)
interval
=
data
.
get
(
'interval'
,
10
)
job_id
=
message
.
msg_id
# Use message ID for job identification
job_id_int
=
int
(
message
.
msg_id
.
split
(
'_'
)[
1
])
# Extract integer job ID
parts
=
message
.
msg_id
.
split
(
'_'
)
job_id_int
=
int
(
parts
[
1
])
if
len
(
parts
)
>
1
else
0
# Extract integer job ID
log_message
(
f
"PROGRESS: Job {job_id_int} accepted - Starting analysis"
)
if
get_debug
():
log_message
(
f
"DEBUG: Starting analysis of {media_path} with model {model_path} for job {job_id}"
)
...
...
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