Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,13 +41,13 @@ with gr.Blocks(theme="default") as iface:
|
|
41 |
|
42 |
api_key_state = gr.State("")
|
43 |
|
44 |
-
with gr.
|
45 |
-
with gr.
|
46 |
-
audio_input = gr.Audio(sources=["microphone", "upload"], type="filepath", label="录音或上传音频")
|
47 |
api_key_input = gr.Textbox(type="password", label="API密钥", placeholder="请输入您的API密钥")
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
51 |
|
52 |
output = gr.Textbox(label="转录文本", placeholder="转录的文字将显示在这里...", lines=10, interactive=True)
|
53 |
|
|
|
41 |
|
42 |
api_key_state = gr.State("")
|
43 |
|
44 |
+
with gr.Row():
|
45 |
+
with gr.Column():
|
|
|
46 |
api_key_input = gr.Textbox(type="password", label="API密钥", placeholder="请输入您的API密钥")
|
47 |
+
audio_input = gr.Audio(sources=["microphone", "upload"], type="filepath", label="录音或上传音频")
|
48 |
+
with gr.Row():
|
49 |
+
transcribe_button = gr.Button("转录")
|
50 |
+
clear_button = gr.ClearButton()
|
51 |
|
52 |
output = gr.Textbox(label="转录文本", placeholder="转录的文字将显示在这里...", lines=10, interactive=True)
|
53 |
|