fffiloni commited on
Commit
e3bbca0
·
1 Parent(s): 891bd19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -122,13 +122,13 @@ with gr.Blocks(css="style.css") as demo:
122
  error_handler = gr.HTML(visible=False, show_label=False, elem_id="error_handler")
123
 
124
  with gr.Column(elem_id="col-container-2"):
125
- with gr.Group():
126
  with gr.Row():
127
  record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
128
  openai_api_key = gr.Textbox(max_lines=1, type="password", label="Your OpenAI API Key", placeholder="sk-123abc...")
129
- with gr.Row():
130
- clean_btn = gr.Button(value="Clean", visible=False)
131
- send_btn = gr.Button("Send my request !")
132
 
133
  clean_btn.click(clean_components, inputs=[], outputs=[record_input, error_handler, whisper_tr, gpt_response, clean_btn])
134
  send_btn.click(infer, inputs=[record_input, openai_api_key], outputs=[whisper_tr, gpt_response, error_handler, share_group, clean_btn])
 
122
  error_handler = gr.HTML(visible=False, show_label=False, elem_id="error_handler")
123
 
124
  with gr.Column(elem_id="col-container-2"):
125
+ with gr.Row():
126
  with gr.Row():
127
  record_input = gr.Audio(source="microphone",type="filepath", label="Audio input", show_label=True, elem_id="record_btn")
128
  openai_api_key = gr.Textbox(max_lines=1, type="password", label="Your OpenAI API Key", placeholder="sk-123abc...")
129
+ with gr.Row():
130
+ clean_btn = gr.Button(value="Clean", visible=False)
131
+ send_btn = gr.Button("Send my request !")
132
 
133
  clean_btn.click(clean_components, inputs=[], outputs=[record_input, error_handler, whisper_tr, gpt_response, clean_btn])
134
  send_btn.click(infer, inputs=[record_input, openai_api_key], outputs=[whisper_tr, gpt_response, error_handler, share_group, clean_btn])