osanseviero HF staff commited on
Commit
5fcdf8e
1 Parent(s): 83c046a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,7 +9,8 @@ MODEL_NAME = "openai/whisper-small" #this always needs to stay in line 8 :D sorr
9
  lang = "en"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
12
-
 
13
  pipe = pipeline(
14
  task="automatic-speech-recognition",
15
  model=MODEL_NAME,
 
9
  lang = "en"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
12
+ print(torch.cuda.is_available())
13
+ print(device)
14
  pipe = pipeline(
15
  task="automatic-speech-recognition",
16
  model=MODEL_NAME,