Daniel Tse
commited on
Commit
•
ad51ec1
1
Parent(s):
d6920f0
Add instructions hide debug button.
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def prepare_text_for_qa(audiotranscription):
|
|
93 |
revalue = ""
|
94 |
return revalue
|
95 |
|
96 |
-
st.markdown("# Podcast
|
97 |
|
98 |
st.markdown(
|
99 |
"""
|
@@ -103,6 +103,9 @@ st.markdown(
|
|
103 |
|
104 |
- As a proof of Concept: the Podcast Episode of Marketplace Business News Podcast from NPR on June 14 is used in this codebase.
|
105 |
- The file is THE ONLY HARDCODED piece of information used in this application.
|
|
|
|
|
|
|
106 |
"""
|
107 |
)
|
108 |
|
@@ -118,18 +121,18 @@ if st.button("Process Audio File"):
|
|
118 |
podcast_summary = summarize_podcast(podcast_text['text'])
|
119 |
st.markdown(
|
120 |
"""
|
121 |
-
##Summary of Text
|
122 |
"""
|
123 |
)
|
124 |
st.text(podcast_summary)
|
125 |
|
126 |
-
if st.button("Summarize Podcast"):
|
127 |
-
with open('transcription.txt', 'r') as file:
|
128 |
-
podcast_text = file.read().rstrip()
|
129 |
-
podcast_summary = summarize_podcast(podcast_text)
|
130 |
-
st.markdown(
|
131 |
-
"""
|
132 |
-
##Summary of Text
|
133 |
-
"""
|
134 |
-
)
|
135 |
-
st.text(podcast_summary)
|
|
|
93 |
revalue = ""
|
94 |
return revalue
|
95 |
|
96 |
+
st.markdown("# Podcast Summarizer")
|
97 |
|
98 |
st.markdown(
|
99 |
"""
|
|
|
103 |
|
104 |
- As a proof of Concept: the Podcast Episode of Marketplace Business News Podcast from NPR on June 14 is used in this codebase.
|
105 |
- The file is THE ONLY HARDCODED piece of information used in this application.
|
106 |
+
|
107 |
+
- *HOW TO TEST:* Click on "Process Audio File" button
|
108 |
+
|
109 |
"""
|
110 |
)
|
111 |
|
|
|
121 |
podcast_summary = summarize_podcast(podcast_text['text'])
|
122 |
st.markdown(
|
123 |
"""
|
124 |
+
## Summary of Text
|
125 |
"""
|
126 |
)
|
127 |
st.text(podcast_summary)
|
128 |
|
129 |
+
# if st.button("Summarize Podcast"):
|
130 |
+
# with open('transcription.txt', 'r') as file:
|
131 |
+
# podcast_text = file.read().rstrip()
|
132 |
+
# podcast_summary = summarize_podcast(podcast_text)
|
133 |
+
# st.markdown(
|
134 |
+
# """
|
135 |
+
# ## Summary of Text
|
136 |
+
# """
|
137 |
+
# )
|
138 |
+
# st.text(podcast_summary)
|