Woziii commited on
Commit
4bf7cc5
·
verified ·
1 Parent(s): 0ba180b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ MODEL_NAME = "openai/whisper-medium"
36
  FILE_LIMIT_MB = 1000
37
  YT_LENGTH_LIMIT_S = 3600
38
 
39
- device = 0 if torch.cuda.is_available() else "cpu"
40
 
41
  pipe = pipeline(
42
  task="automatic-speech-recognition",
 
36
  FILE_LIMIT_MB = 1000
37
  YT_LENGTH_LIMIT_S = 3600
38
 
39
+ device = "cuda:0" if torch.cuda.is_available() else "cpu"
40
 
41
  pipe = pipeline(
42
  task="automatic-speech-recognition",