Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def f1(langname,lang_aligner):
|
|
67 |
sound_path = ds['audio'][0]['path'] # audio 0 array is the audio data itself
|
68 |
transcript = ds['normalized_text'][0]
|
69 |
#print('PLACE A:',lang_aligner)
|
70 |
-
return graph.align_and_graph(sound_path,transcript,lang_aligner)
|
71 |
|
72 |
|
73 |
bl = gr.Blocks()
|
@@ -83,13 +83,14 @@ with bl:
|
|
83 |
databrowser = gr.DataFrame(wrap=True, max_rows=50, interactive=False, overflow_row_behaviour='paginate')
|
84 |
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
89 |
|
90 |
pl1 = gr.Plot()
|
91 |
|
92 |
-
btn1.click(f1, [lloadr,align_func], pl1)
|
93 |
|
94 |
|
95 |
|
|
|
67 |
sound_path = ds['audio'][0]['path'] # audio 0 array is the audio data itself
|
68 |
transcript = ds['normalized_text'][0]
|
69 |
#print('PLACE A:',lang_aligner)
|
70 |
+
return (graph.align_and_graph(sound_path,transcript,lang_aligner),sound_path)
|
71 |
|
72 |
|
73 |
bl = gr.Blocks()
|
|
|
83 |
databrowser = gr.DataFrame(wrap=True, max_rows=50, interactive=False, overflow_row_behaviour='paginate')
|
84 |
|
85 |
|
86 |
+
with gr.Row():
|
87 |
+
btn1 = gr.Button(value="The random prosody button")
|
88 |
+
btn1.style(full_width=False, size="sm")
|
89 |
+
audio1 = gr.Audio(interactive=False)
|
90 |
|
91 |
pl1 = gr.Plot()
|
92 |
|
93 |
+
btn1.click(f1, [lloadr,align_func], [pl1,audio1])
|
94 |
|
95 |
|
96 |
|