Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|