S-Fry
/

S-Fry commited on
Commit
afacbcf
·
1 Parent(s): 8235e54

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -7,7 +7,7 @@ from transformers.pipelines.audio_utils import ffmpeg_read
7
  SAMPLE_RATE=16000
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
- #device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
  self.pipe = pipeline(
12
  "automatic-speech-recognition",
13
  model="openai/whisper-large",
 
7
  SAMPLE_RATE=16000
8
  class EndpointHandler():
9
  def __init__(self, path=""):
10
+ self.device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
  self.pipe = pipeline(
12
  "automatic-speech-recognition",
13
  model="openai/whisper-large",