cotxetj commited on
Commit
261c279
1 Parent(s): 6c8885f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ import gradio as gr
7
  import whisper
8
 
9
  model = whisper.load_model("small")
 
10
 
11
  def inference(audio):
12
  audio = whisper.load_audio(audio)
 
7
  import whisper
8
 
9
  model = whisper.load_model("small")
10
+ device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
 
12
  def inference(audio):
13
  audio = whisper.load_audio(audio)