Skip to content

Commit

Permalink
fix opened file
Browse files Browse the repository at this point in the history
  • Loading branch information
feyhoa committed Oct 6, 2023
1 parent b14bbd9 commit c78e922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def get_att_whisper(filename):
with open(filename, 'rb') as f_byte:
file = {'audio_file': (filename, f_byte)}

response = requests.post(WhisperSettings.link +
'/asr?task=transcribe&encode=false&output=json&word_timestamps=true',
files=file)
response = requests.post(WhisperSettings.link +
'/asr?task=transcribe&encode=false&output=json&word_timestamps=true',
files=file)

return response

0 comments on commit c78e922

Please sign in to comment.