Skip to content

Commit

Permalink
Fix infinite loop while waiting for transcriptions from wit
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Aug 25, 2023
1 parent 3760bf5 commit 3a25f64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tafrigh/recognizers/wit_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def recognize(
else None,
}

time.sleep(0.1)

shutil.rmtree(temp_directory)

return transcriptions
Expand Down

0 comments on commit 3a25f64

Please sign in to comment.