Skip to content

Commit

Permalink
misuse of variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Feb 8, 2024
1 parent 9bd7383 commit fa4037a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/zero_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,12 @@ def run(self):
self.yamnet_config.sample_rate,
filter=self.config.
resample_method)
document, classification_tag = self.generate_yamnet_document(
doc, classification_tag = self.generate_yamnet_document(
samples, self.config.add_spectrogram)
del samples
if len(self.config.trigger_ban) > 0:
for banned_tag in self.config.trigger_ban:
if banned_tag in document["scores"].keys():
if banned_tag in doc["scores"].keys():
print("Do not keep audio because %s has"
" been detected" % banned_tag)
keep_audio = False
Expand Down

0 comments on commit fa4037a

Please sign in to comment.