Daniel Tse commited on
Commit
4125ee2
1 Parent(s): 5de52b7

Split out summary to separate function

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -65,6 +65,17 @@ if st.button("Process Audio File"):
65
  )
66
  st.text(podcast_summary)
67
 
 
 
 
 
 
 
 
 
 
 
 
68
  #audio_file = st.file_uploader("Upload audio copy of file", key="upload", type=['.mp3'])
69
 
70
 
 
65
  )
66
  st.text(podcast_summary)
67
 
68
+ if st.button("Summarize Podcast"):
69
+ with open('transcription.txt', 'r') as file:
70
+ podcast_summary = file.read().rstrip()
71
+ podcast_summary = summarize_podcast(podcast_text)
72
+ st.markdown(
73
+ """
74
+ ##Summary of Text
75
+ """
76
+ )
77
+ st.text(podcast_summary)
78
+
79
  #audio_file = st.file_uploader("Upload audio copy of file", key="upload", type=['.mp3'])
80
 
81