Skip to content

Commit

Permalink
ifx
Browse files Browse the repository at this point in the history
  • Loading branch information
ander1119 committed May 19, 2024
1 parent 793f133 commit 5a2e686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cached_code/v+d_df_gpt4_simple/v1.csv
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def execute_command(video, annotation, possible_answers, query):
big_bad_candidate = character_id

# If a candidate is found and their negative impacts are significant, answer 'yes'
if big_bad_candidate and max_negative_impacts > len(video_segment.frame_iterator()) * 0.5: # Arbitrary threshold: more than 50% of frames
if big_bad_candidate and max_negative_impacts > len(video_segment) * 0.5: # Arbitrary threshold: more than 50% of frames
answer = ""yes""
reason = f""The character {big_bad_candidate} caused negative impacts in more than 50% of the frames.""
else:
Expand Down

0 comments on commit 5a2e686

Please sign in to comment.