Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -145,8 +145,8 @@ with gr.Blocks() as demo:
|
|
145 |
btn.click(create_textfile, inputs=[voice_msg, up_file, state], outputs=[voice_msg, up_file, text, file, sys_msg], queue=True)
|
146 |
|
147 |
# 音声録音後処理に時間がかかるのでボタンを利用不可にする
|
148 |
-
|
149 |
-
|
150 |
|
151 |
with gr.Tab("設定") as settab:
|
152 |
openai_key = gr.Textbox(label="OpenAI API Key", interactive = True)
|
|
|
145 |
btn.click(create_textfile, inputs=[voice_msg, up_file, state], outputs=[voice_msg, up_file, text, file, sys_msg], queue=True)
|
146 |
|
147 |
# 音声録音後処理に時間がかかるのでボタンを利用不可にする
|
148 |
+
# voice_msg.start_recording(lambda:gr.update(interactive=False), None, btn)
|
149 |
+
# voice_msg.stop_recording(wait_mic_process, None, btn)
|
150 |
|
151 |
with gr.Tab("設定") as settab:
|
152 |
openai_key = gr.Textbox(label="OpenAI API Key", interactive = True)
|