Update app.py
Browse files
app.py
CHANGED
@@ -184,11 +184,6 @@ else:
|
|
184 |
|
185 |
clean_text = preprocess_plain_text(plain_text)
|
186 |
|
187 |
-
if is_url:
|
188 |
-
|
189 |
-
# view summarized text (expander)
|
190 |
-
st.markdown(f"Article title: {article_title}")
|
191 |
-
|
192 |
summarize = st.button("Summarize")
|
193 |
|
194 |
# called on toggle button [summarize]
|
@@ -208,7 +203,13 @@ if summarize:
|
|
208 |
|
209 |
# final summarized output
|
210 |
st.subheader("Summarized text")
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
text_downloader(summarized_text)
|
214 |
|
|
|
184 |
|
185 |
clean_text = preprocess_plain_text(plain_text)
|
186 |
|
|
|
|
|
|
|
|
|
|
|
187 |
summarize = st.button("Summarize")
|
188 |
|
189 |
# called on toggle button [summarize]
|
|
|
203 |
|
204 |
# final summarized output
|
205 |
st.subheader("Summarized text")
|
206 |
+
|
207 |
+
if is_url:
|
208 |
+
|
209 |
+
# view summarized text (expander)
|
210 |
+
st.markdown(f"Article title: {article_title}")
|
211 |
+
|
212 |
+
st.write(summarized_text)
|
213 |
|
214 |
text_downloader(summarized_text)
|
215 |
|