This commit is contained in:
Paul Trowbridge 2023-04-11 10:36:27 -04:00
parent 01aecb888e
commit 90cc2ba2b6
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env
*.swp
curl.sh
.vscode

View File

@ -56,6 +56,7 @@ for file_name in os.listdir(args.dir_path):
continue
# Send the transcription request and retrieve the results
print(f"to be processed {file_path}")
audio_file = open(file_path, 'rb')
response = requests.post(url, headers=headers, params=params, data=data, files={'file': audio_file})
transcript = response.text