killerbng commited on
Commit
bc81f54
·
verified ·
1 Parent(s): 6e32e40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
2
  import whisperx
3
  import whisper
4
  import torch
 
5
 
 
 
6
  def transcribe(audio_file):
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
 
 
2
  import whisperx
3
  import whisper
4
  import torch
5
+ import spaces
6
 
7
+
8
+ @spaces.GPU
9
  def transcribe(audio_file):
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11