zhaochaojin
commited on
Commit
·
639f1ae
1
Parent(s):
472f50c
fix:
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ def speech_to_text(audio):
|
|
| 6 |
|
| 7 |
demo = gr.Interface(
|
| 8 |
fn=speech_to_text,
|
| 9 |
-
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
| 10 |
outputs="text",
|
| 11 |
title="语音转文本演示",
|
| 12 |
description="请录制一段语音,系统将返回转写文本(目前为默认文本)。"
|
|
|
|
| 6 |
|
| 7 |
demo = gr.Interface(
|
| 8 |
fn=speech_to_text,
|
| 9 |
+
inputs=gr.Audio(sources=["upload","microphone"], type="filepath"),
|
| 10 |
outputs="text",
|
| 11 |
title="语音转文本演示",
|
| 12 |
description="请录制一段语音,系统将返回转写文本(目前为默认文本)。"
|