From 3fe698710d7aada43ff72cb2a09a4742ab7489cf Mon Sep 17 00:00:00 2001 From: gferraro Date: Mon, 29 Apr 2024 12:59:27 +1200 Subject: [PATCH] classify audio tracks --- processing/api.py | 7 ------- processing/audio_analysis.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/processing/api.py b/processing/api.py index d69a241..32f6ca8 100644 --- a/processing/api.py +++ b/processing/api.py @@ -240,13 +240,6 @@ def archive_track(self, recording, track): return raise IOError(r.text) - def classified_track(self, recording, track): - url = self.file_url + "/{}/tracks/{}/classified".format(recording["id"], track["id"]) - r = self.post(url) - if r.status_code == 200: - return - raise IOError(r.text) - def update_track(self, recording, track): url = self.file_url + "/{}/tracks/{}".format(recording["id"], track["id"]) post_data = {"data": json.dumps(track)} diff --git a/processing/audio_analysis.py b/processing/audio_analysis.py index d4bdd44..3922c30 100644 --- a/processing/audio_analysis.py +++ b/processing/audio_analysis.py @@ -35,7 +35,7 @@ def track_analyse(recording, jwtKey, conf): """Reprocess the audio file. - Downloads the file, runs the AI model on tracks marked for classification + Downloads the file, runs the AI model on tracks that don't have AI tags Args: recording: The recording to process.