Lenylvt commited on
Commit
3005ff8
·
verified ·
1 Parent(s): 29b4b66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def text_to_srt(text):
17
 
18
  def download_srt(srt_content):
19
  b64 = base64.b64encode(srt_content.encode()).decode()
20
- return f'<a download="output.srt" href="data:text/srt;base64,{b64}">Download SRT</a>'
21
 
22
  with gr.Blocks() as app:
23
  gr.Markdown("### Text to SRT Converter")
 
17
 
18
  def download_srt(srt_content):
19
  b64 = base64.b64encode(srt_content.encode()).decode()
20
+ return f'<a download="output.srt" href="text/srt;base64,{b64}">Download SRT</a>'
21
 
22
  with gr.Blocks() as app:
23
  gr.Markdown("### Text to SRT Converter")