Skip to content

Commit

Permalink
classify audio tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Apr 29, 2024
1 parent c301a8c commit 3fe6987
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions processing/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
2 changes: 1 addition & 1 deletion processing/audio_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3fe6987

Please sign in to comment.