Skip to content

Commit

Permalink
chore: fix ruff lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmanvaidya committed Sep 11, 2024
1 parent 8a6b007 commit 5f73898
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/operators/test_classify_video_zero_shot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def tearDownClass(cls):
# delete config files
pass

# @skip
@skip
def test_sample_video_from_disk(self):
video_path = VideoFactory.make_from_file_on_disk(
r"core/operators/sample_data/sample-cat-video.mp4"
Expand Down
2 changes: 1 addition & 1 deletion src/core/operators/test_vid_vec_rep_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def tearDownClass(cls):
# delete config files
pass

# @skip
@skip
def test_sample_video_from_disk(self):
video_path = VideoFactory.make_from_file_on_disk(
r"core/operators/sample_data/sample-cat-video.mp4"
Expand Down
2 changes: 1 addition & 1 deletion src/core/store/es_vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def refresh(self):
self.client.indices.refresh()

def find(self, index_name, vec):
if type(vec) == np.ndarray:
if isinstance(vec, np.ndarray):
vec = vec.tolist()

calculation = ""
Expand Down
3 changes: 2 additions & 1 deletion src/worker/clustering_media/clustering_media_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from core.operators import audio_vec_embedding_clap
from core.operators import vid_vec_rep_clip, classify_video_zero_shot
from core.operators import cluster_embeddings, dimension_reduction
import requests, json
import requests
import json
from core.models.media_factory import AudioFactory, VideoFactory
from time import sleep

Expand Down

0 comments on commit 5f73898

Please sign in to comment.