Estwld commited on
Commit
4068642
·
verified ·
1 Parent(s): ce67652

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -41,13 +41,14 @@ with gr.Blocks(theme="default") as iface:
41
 
42
  api_key_state = gr.State("")
43
 
44
- with gr.Col():
45
  with gr.Row():
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
- transcribe_button = gr.Button("转录")
50
- clear_button = gr.ClearButton()
 
51
  output = gr.Textbox(label="转录文本", placeholder="转录的文字将显示在这里...", lines=10, interactive=True)
52
 
53
  # 设置 API 密钥的回调
 
41
 
42
  api_key_state = gr.State("")
43
 
44
+ with gr.Column():
45
  with gr.Row():
46
  audio_input = gr.Audio(sources=["microphone", "upload"], type="filepath", label="录音或上传音频")
47
  api_key_input = gr.Textbox(type="password", label="API密钥", placeholder="请输入您的API密钥")
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
 
54
  # 设置 API 密钥的回调