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

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 = 0 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" if torch.cuda.is_available() else "cpu"
17
 
18
  # Intialise STT (Whisper)
19
  pipe = pipeline(