Skip to content

Commit

Permalink
fix deleted variables before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Feb 27, 2024
1 parent 253cf11 commit d613a56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
},
{
"field": "hwa.keyword"
},
{
"field": "scores_perc.*"
}
]
}
2 changes: 1 addition & 1 deletion services/zero_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,6 @@ def run(self):
subtype='PCM_24') as f:
f.write(data)
f.flush()
del data
audio_data_encrypt = base64.b64encode(encrypt(
output.getvalue(), ssh_file)).decode("UTF-8")
print("raw %d array %d bytes b64 ogg: %d bytes"
Expand All @@ -470,6 +469,7 @@ def run(self):
len(audio_data_encrypt),
time.time() -
audio_processing_start))
del data
info = sf.info(io.BytesIO(output.getvalue()))
del output
print("Audio duration %.2f s, remaining triggers %d" % (
Expand Down

0 comments on commit d613a56

Please sign in to comment.