sanchit-gandhi HF staff commited on
Commit
6089c46
1 Parent(s): 5cc18a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ import json
13
  import soundfile as sf
14
 
15
 
16
- device = "cuda" if torch.cuda.is_available() else "cpu"
17
 
18
  # Intialise STT (Whisper)
19
  pipe = pipeline(
 
13
  import soundfile as sf
14
 
15
 
16
+ device = "cuda:0" if torch.cuda.is_available() else "cpu"
17
 
18
  # Intialise STT (Whisper)
19
  pipe = pipeline(