Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import whisperx
|
3 |
import whisper
|
|
|
4 |
|
5 |
def transcribe(audio_file):
|
6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
1 |
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"
|