Spaces:
Sleeping
Sleeping
Commit
·
19047d4
1
Parent(s):
4e654b6
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def audio_to_text(audio, num_speakers):
|
|
48 |
add_speaker_labels(segments, embeddings, num_speakers)
|
49 |
output = get_output(segments)
|
50 |
short_sum=text_to_short_summary(output)
|
51 |
-
return output
|
52 |
|
53 |
def convert_to_wav(path):
|
54 |
if path[-3:] != 'wav':
|
@@ -125,7 +125,8 @@ app1=gr.Interface(
|
|
125 |
|
126 |
],
|
127 |
outputs=[
|
128 |
-
gr.outputs.Textbox(label='Transcript')
|
|
|
129 |
|
130 |
]
|
131 |
)
|
|
|
48 |
add_speaker_labels(segments, embeddings, num_speakers)
|
49 |
output = get_output(segments)
|
50 |
short_sum=text_to_short_summary(output)
|
51 |
+
return output , text_to_short_summary(str(output))
|
52 |
|
53 |
def convert_to_wav(path):
|
54 |
if path[-3:] != 'wav':
|
|
|
125 |
|
126 |
],
|
127 |
outputs=[
|
128 |
+
(gr.outputs.Textbox(label='Transcript')),
|
129 |
+
(gr.outputs.Textbox(label='Short_summary'))
|
130 |
|
131 |
]
|
132 |
)
|