mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 14:45:46 +01:00
Fixed test
This commit is contained in:
parent
5106046801
commit
d14d4b8d09
1 changed files with 4 additions and 3 deletions
|
|
@ -325,14 +325,15 @@ class RecordingTranscriber(QObject):
|
|||
self.error.emit(str(exc))
|
||||
return
|
||||
|
||||
self.finished.emit()
|
||||
|
||||
# Cleanup
|
||||
# Cleanup before emitting finished to avoid destroying QThread
|
||||
# while this function is still on the call stack
|
||||
if model:
|
||||
del model
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
self.finished.emit()
|
||||
|
||||
@staticmethod
|
||||
def get_device_sample_rate(device_id: Optional[int]) -> int:
|
||||
"""Returns the sample rate to be used for recording. It uses the default sample rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue