Skip to content

Commit

Permalink
configures device type for model usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Jul 19, 2024
1 parent 36c59f4 commit 3907273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion point.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def transcribe(audio_file: io.BytesIO) -> Iterator[str]:

# TODO: configurable model path
whisper = WhisperModel(
model_size, download_root="./whisper-models", compute_type="int8"
model_size, download_root="./whisper-models", device="cpu"
)
segments, _ = whisper.transcribe(
audio_file,
Expand Down

0 comments on commit 3907273

Please sign in to comment.