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
b305223e
Commit
b305223e
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undefined job_id variable in analyze_media function
parent
1e224c1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
worker_analysis.py
vidai/worker_analysis.py
+3
-2
No files found.
vidai/worker_analysis.py
View file @
b305223e
...
@@ -181,8 +181,9 @@ def check_job_cancelled(job_id):
...
@@ -181,8 +181,9 @@ def check_job_cancelled(job_id):
except
:
except
:
return
False
return
False
def
analyze_media
(
media_path
,
prompt
,
model_path
,
interval
=
10
,
job_id
_int
=
None
,
comm
=
None
):
def
analyze_media
(
media_path
,
prompt
,
model_path
,
interval
=
10
,
job_id
=
None
,
comm
=
None
):
"""Analyze media using dynamic model loading."""
"""Analyze media using dynamic model loading."""
job_id_int
=
int
(
job_id
.
split
(
'_'
)[
1
])
if
job_id
else
None
if
get_debug
():
if
get_debug
():
print
(
f
"DEBUG: Starting analyze_media for job {job_id_int}, media_path={media_path}"
)
print
(
f
"DEBUG: Starting analyze_media for job {job_id_int}, media_path={media_path}"
)
...
@@ -493,7 +494,7 @@ def worker_process(backend_type: str):
...
@@ -493,7 +494,7 @@ def worker_process(backend_type: str):
print
(
f
"PROGRESS: Job {job_id_int} accepted - Starting analysis"
)
print
(
f
"PROGRESS: Job {job_id_int} accepted - Starting analysis"
)
if
get_debug
():
if
get_debug
():
print
(
f
"DEBUG: Starting analysis of {media_path} with model {model_path} for job {job_id}"
)
print
(
f
"DEBUG: Starting analysis of {media_path} with model {model_path} for job {job_id}"
)
result
,
tokens_used
=
analyze_media
(
media_path
,
prompt
,
model_path
,
interval
,
job_id
_int
,
comm
)
result
,
tokens_used
=
analyze_media
(
media_path
,
prompt
,
model_path
,
interval
,
job_id
,
comm
)
if
get_debug
():
if
get_debug
():
print
(
f
"DEBUG: Analysis completed for job {message.msg_id}, used {tokens_used} tokens"
)
print
(
f
"DEBUG: Analysis completed for job {message.msg_id}, used {tokens_used} tokens"
)
...
...
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