Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def transcribe(audio_path):
|
|
19 |
# 创建Gradio接口
|
20 |
iface = gr.Interface(
|
21 |
fn=transcribe,
|
22 |
-
inputs=gr.Audio(sources=["upload"], type="filepath")
|
23 |
outputs="text",
|
24 |
title="WhisperX 语音转文字",
|
25 |
description="上传音频文件,使用WhisperX模型进行转录。"
|
|
|
19 |
# 创建Gradio接口
|
20 |
iface = gr.Interface(
|
21 |
fn=transcribe,
|
22 |
+
inputs=gr.Audio(sources=["upload", "microphone"], type="filepath"),
|
23 |
outputs="text",
|
24 |
title="WhisperX 语音转文字",
|
25 |
description="上传音频文件,使用WhisperX模型进行转录。"
|