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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -29,13 +29,6 @@ def transcribe(audio, state="", uploaded_audio=None):
29
  except Exception as e:
30
  return "An error occurred during transcription.", state # Handle other exceptions
31
 
32
- def save_to_file(text):
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
 
@@ -48,9 +41,7 @@ gr.Interface(
48
  ],
49
  outputs=[
50
  "textbox",
51
- "state",
52
- "text",
53
- gr.outputs.HTML("Download Link")
54
  ],
55
  live=True).launch()
56
 
 
29
  except Exception as e:
30
  return "An error occurred during transcription.", state # Handle other exceptions
31
 
 
 
 
 
 
 
 
32
 
33
 
34
 
 
41
  ],
42
  outputs=[
43
  "textbox",
44
+ "state"
 
 
45
  ],
46
  live=True).launch()
47