pktpaulie commited on
Commit
19638cd
·
verified ·
1 Parent(s): 8445fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from transformers import pipeline
2
- import torch
3
  import gradio as gr
4
 
5
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
@@ -8,7 +8,7 @@ pipe = pipeline(
8
  "automatic-speech-recognition",
9
  model="openai/whisper-small.en",
10
  chunk_length_s=30,
11
- device=device,
12
  )
13
 
14
  # Function to transcribe audio
 
1
  from transformers import pipeline
2
+ # import torch
3
  import gradio as gr
4
 
5
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
 
8
  "automatic-speech-recognition",
9
  model="openai/whisper-small.en",
10
  chunk_length_s=30,
11
+ # device=device,
12
  )
13
 
14
  # Function to transcribe audio