Spaces:
Running
Running
Update app.py
Browse files
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
|
37 |
-
|
38 |
-
|
39 |
|
40 |
|
41 |
|
@@ -49,7 +49,8 @@ gr.Interface(
|
|
49 |
outputs=[
|
50 |
"textbox",
|
51 |
"state",
|
52 |
-
|
|
|
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 |
|