muhtasham commited on
Commit
9c7822e
·
1 Parent(s): 2a49988
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def transcribe(inputs, return_timestamps, generate_subs, batch_size, chunk_lengt
124
  srt_file = save_srt_to_file(srt_content)
125
  logger.info("SRT subtitles generated successfully")
126
 
127
- return formatted_result, srt_file
128
  except Exception as e:
129
  logger.exception(f"Error during transcription: {str(e)}")
130
  raise gr.Error(f"Failed to transcribe audio: {str(e)}")
 
124
  srt_file = save_srt_to_file(srt_content)
125
  logger.info("SRT subtitles generated successfully")
126
 
127
+ return formatted_result, srt_file, "" # Return empty string for correction textbox
128
  except Exception as e:
129
  logger.exception(f"Error during transcription: {str(e)}")
130
  raise gr.Error(f"Failed to transcribe audio: {str(e)}")