Update app.py
Browse files
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")
|