awacke1 commited on
Commit
931aeda
·
1 Parent(s): 32a04c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
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
- transcription = whisper_transcribe_audio(filename)
448
-
449
- # Update the text area with new transcription
450
- updated_transcriptions = f"{previous_transcriptions}\n{transcription}"
451
- st.text_area("Transcriptions:", updated_transcriptions, height=400)
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