DarwinAnim8or commited on
Commit
713bc64
·
1 Parent(s): 253867d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  # Load the model and processor
5
  model_id = "openai/whisper-medium"
6
 
7
- device = 0 if torch.cuda.is_available() else "cpu"
8
  BATCH_SIZE = 8
9
  pipe = pipeline(
10
  task="automatic-speech-recognition",
 
4
  # Load the model and processor
5
  model_id = "openai/whisper-medium"
6
 
7
+ device = "cpu"
8
  BATCH_SIZE = 8
9
  pipe = pipeline(
10
  task="automatic-speech-recognition",