barbaroo commited on
Commit
30c59c9
·
1 Parent(s): ba6c3bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -33,9 +33,9 @@ def save_to_file(text):
33
  with open("transcription_output.txt", "w") as f:
34
  f.write(text)
35
 
36
- def download_button(text):
37
- save_to_file(text)
38
- return "Download Complete!"
39
 
40
 
41
 
@@ -49,7 +49,8 @@ gr.Interface(
49
  outputs=[
50
  "textbox",
51
  "state",
52
- gr.outputs.Button("Download Transcription")
 
53
  ],
54
  live=True).launch()
55
 
 
33
  with open("transcription_output.txt", "w") as f:
34
  f.write(text)
35
 
36
+ def download_link(text):
37
+ return f'<a href="/transcription_output.txt" download>Download Transcription</a>'
38
+
39
 
40
 
41
 
 
49
  outputs=[
50
  "textbox",
51
  "state",
52
+ "text",
53
+ gr.outputs.HTML("Download Link")
54
  ],
55
  live=True).launch()
56