JoshMe1 commited on
Commit
730e8ab
·
1 Parent(s): d5d73d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -49,3 +49,9 @@ st.markdown("Larger models are more accurate, but slower. For 1min video, it'll
49
  if st.button("Transcribe"):
50
  transcript = get_transcript(url, model_size, lang, format)
51
  st.text_area("Transcription of the video", transcript)
 
 
 
 
 
 
 
49
  if st.button("Transcribe"):
50
  transcript = get_transcript(url, model_size, lang, format)
51
  st.text_area("Transcription of the video", transcript)
52
+
53
+ if format == ".srt":
54
+ srt_file = open("transcription.srt", "w", encoding="utf-8")
55
+ srt_file.write(transcript)
56
+ srt_file.close()
57
+ st.download_button("Download SRT", "transcription.srt")