Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
| 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")
|