FranklinWillemen commited on
Commit
e1ef6ff
1 Parent(s): f54a48c

ui improvements

Browse files
Files changed (1) hide show
  1. gradio-ui.py +6 -5
gradio-ui.py CHANGED
@@ -19,12 +19,13 @@ with gr.Blocks(theme=theme) as ui:
19
  with gr.Row():
20
  text_response = gr.Textbox(label="Transcript", max_lines=10)
21
  with gr.Row():
22
- btn3 = gr.Button("Show Transcript")
23
- with gr.Row():
24
- btn2 = gr.Button("Save Transcript")
 
25
 
26
  btn1.click(fn=d.respond, inputs=message, outputs=audio_response)
27
- btn2.click(fn=m.save_as_hf_dataset)
28
- btn3.click(fn=d.transcript, outputs=text_response)
29
 
30
  ui.launch()
 
19
  with gr.Row():
20
  text_response = gr.Textbox(label="Transcript", max_lines=10)
21
  with gr.Row():
22
+ with gr.Column(scale=1):
23
+ btn2 = gr.Button("Show Transcript")
24
+ with gr.Column(scale=1):
25
+ btn3 = gr.Button("Save Transcript")
26
 
27
  btn1.click(fn=d.respond, inputs=message, outputs=audio_response)
28
+ btn2.click(fn=d.transcript, outputs=text_response)
29
+ btn3.click(fn=m.save_as_hf_dataset)
30
 
31
  ui.launch()