Skip to content

Commit

Permalink
change os.splitext
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheepsta300 committed Aug 28, 2024
1 parent 6221319 commit b515e85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def lazy_parse(self, blob: Blob) -> Iterator[Document]:

# Audio file from disk
audio = AudioSegment.from_file(blob.path)
file_extension = os.path.splitext(blob.path)[1][1:]
file_extension = os.path.splitext(str(blob.path))[1][1:]
# Define the duration of each chunk in minutes
# Need to meet 25MB size limit for Whisper API
chunk_duration = 20
Expand Down

0 comments on commit b515e85

Please sign in to comment.