Spaces:
Runtime error
Runtime error
ktangri
commited on
Commit
·
4f3fae8
1
Parent(s):
02be93f
Bug fix
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def transcribe(filepath):
|
|
21 |
full_text = text['text'].lower()
|
22 |
chunks = text['chunks']
|
23 |
|
24 |
-
|
25 |
i = 0
|
26 |
for turn, _, speaker in speaker_output.itertracks(yield_label=True):
|
27 |
diarized = ""
|
@@ -33,7 +33,7 @@ def transcribe(filepath):
|
|
33 |
diarized = rpunct.punctuate(diarized)
|
34 |
diarized_output += "{}: ''{}'' from {:.3f}-{:.3f}\n".format(speaker,diarized,turn.start,turn.end)
|
35 |
|
36 |
-
return
|
37 |
|
38 |
mic = gr.inputs.Audio(source='microphone', type='filepath', label='Speech input', optional=False)
|
39 |
|
|
|
21 |
full_text = text['text'].lower()
|
22 |
chunks = text['chunks']
|
23 |
|
24 |
+
diarized_output = ""
|
25 |
i = 0
|
26 |
for turn, _, speaker in speaker_output.itertracks(yield_label=True):
|
27 |
diarized = ""
|
|
|
33 |
diarized = rpunct.punctuate(diarized)
|
34 |
diarized_output += "{}: ''{}'' from {:.3f}-{:.3f}\n".format(speaker,diarized,turn.start,turn.end)
|
35 |
|
36 |
+
return diarized_output, full_text
|
37 |
|
38 |
mic = gr.inputs.Audio(source='microphone', type='filepath', label='Speech input', optional=False)
|
39 |
|