izzidyaz commited on
Commit
6f8782c
1 Parent(s): 7a58c26

first commit

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -118,10 +118,4 @@ else:
118
  st.markdown(transcript)
119
 
120
  #Download Button
121
- download=st.form_submit_button("Download Transcription")
122
- if download:
123
- env=os.environ
124
- user=env.get('USERPROFILE')
125
- location=user+"\Desktop\Audio_Analysis\Youtube Transcription\Transcript.txt"
126
- with open(location,'w') as file:
127
- file.write(transcript)
 
118
  st.markdown(transcript)
119
 
120
  #Download Button
121
+ st.download_button('Download CSV', transcript, 'text/csv')