Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -443,17 +443,13 @@ def whisper_main():
|
|
443 |
|
444 |
filename = whisper_save_and_play_audio(audio_recorder)
|
445 |
if filename is not None:
|
446 |
-
try:
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
# Save the new transcription to file
|
454 |
-
whisper_save_transcription(transcription)
|
455 |
-
except:
|
456 |
-
st.write('Whisperer loading..')
|
457 |
|
458 |
def main():
|
459 |
|
|
|
443 |
|
444 |
filename = whisper_save_and_play_audio(audio_recorder)
|
445 |
if filename is not None:
|
446 |
+
#try:
|
447 |
+
transcription = whisper_transcribe_audio(filename)
|
448 |
+
updated_transcriptions = f"{previous_transcriptions}\n{transcription}"
|
449 |
+
st.text_area("Transcriptions:", updated_transcriptions, height=400)
|
450 |
+
whisper_save_transcription(transcription)
|
451 |
+
#except:
|
452 |
+
# st.write('Whisperer loading..')
|
|
|
|
|
|
|
|
|
453 |
|
454 |
def main():
|
455 |
|