Spaces:
Runtime error
Runtime error
Update app.py
Browse filesremoved #if uploaded_file:
app.py
CHANGED
|
@@ -38,9 +38,9 @@ if __name__ == "__main__":
|
|
| 38 |
"Upload a .txt, .pdf, .docx file for summarization"
|
| 39 |
)
|
| 40 |
|
| 41 |
-
if uploaded_file:
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
# view summarized text (expander)
|
| 46 |
with st.expander("View input text"):
|
|
|
|
| 38 |
"Upload a .txt, .pdf, .docx file for summarization"
|
| 39 |
)
|
| 40 |
|
| 41 |
+
#if uploaded_file:
|
| 42 |
+
clean_txt = read_text_from_file(uploaded_file)
|
| 43 |
+
clean_txt = clean_text(clean_txt)
|
| 44 |
|
| 45 |
# view summarized text (expander)
|
| 46 |
with st.expander("View input text"):
|