Spaces:
Build error
Build error
Commit
·
642b6c2
1
Parent(s):
5855353
change model into large-v3
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import whisperx
|
3 |
|
4 |
# 加载WhisperX模型
|
5 |
-
model = whisperx.load_model("
|
6 |
|
7 |
def transcribe(audio_path):
|
8 |
# 使用WhisperX进行转录
|
|
|
2 |
import whisperx
|
3 |
|
4 |
# 加载WhisperX模型
|
5 |
+
model = whisperx.load_model("large-v3", device="cpu") # 如果有GPU,可将"cpu"改为"cuda"
|
6 |
|
7 |
def transcribe(audio_path):
|
8 |
# 使用WhisperX进行转录
|