Spaces:
Paused
Paused
FranklinWillemen
commited on
Commit
•
e1ef6ff
1
Parent(s):
f54a48c
ui improvements
Browse files- 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 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
|
26 |
btn1.click(fn=d.respond, inputs=message, outputs=audio_response)
|
27 |
-
btn2.click(fn=
|
28 |
-
btn3.click(fn=
|
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()
|