Spaces:
Runtime error
Runtime error
MetroBox
commited on
Commit
路
8befa65
1
Parent(s):
d67418d
download txt
Browse files
app.py
CHANGED
@@ -29,10 +29,12 @@ def bulk_transcribe(files):
|
|
29 |
for i in files:
|
30 |
output+='Archivo '+str(number)+'\n'+transcribe(i.name)+'\n'
|
31 |
number+=1
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
|
|
|
|
36 |
def transcribe(audio):
|
37 |
num_speakers=3
|
38 |
path, error = convert_to_wav(audio)
|
@@ -110,7 +112,5 @@ gr.Interface(
|
|
110 |
title = 'Reconocimiento de hablantes con Whisper en Espa帽ol',
|
111 |
fn=bulk_transcribe,
|
112 |
inputs=gr.File(file_count="multiple", file_types=["audio"]),
|
113 |
-
outputs=[
|
114 |
-
gr.Textbox(label='Transcripci贸n')
|
115 |
-
]
|
116 |
).launch()
|
|
|
29 |
for i in files:
|
30 |
output+='Archivo '+str(number)+'\n'+transcribe(i.name)+'\n'
|
31 |
number+=1
|
32 |
+
|
33 |
+
with open('Transcripci贸n.txt', 'w') as file:
|
34 |
+
file.write(output)
|
35 |
|
36 |
+
return 'Transcrici贸n.txt', output
|
37 |
+
|
38 |
def transcribe(audio):
|
39 |
num_speakers=3
|
40 |
path, error = convert_to_wav(audio)
|
|
|
112 |
title = 'Reconocimiento de hablantes con Whisper en Espa帽ol',
|
113 |
fn=bulk_transcribe,
|
114 |
inputs=gr.File(file_count="multiple", file_types=["audio"]),
|
115 |
+
outputs=[gr.File(), gr.Textbox(label='Transcripci贸n')]
|
|
|
|
|
116 |
).launch()
|