Spaces:
Runtime error
Runtime error
Update app.py
Browse filesRemoved text items
app.py
CHANGED
@@ -23,14 +23,6 @@ if __name__ == "__main__":
|
|
23 |
"Summarization type", options=["Extractive", "Abstractive"]
|
24 |
)
|
25 |
|
26 |
-
st.markdown(
|
27 |
-
"Enter a text or a url to get a concise summary of the article while conserving the overall meaning. This app supports text in the following formats:"
|
28 |
-
)
|
29 |
-
st.markdown(
|
30 |
-
"""- Raw text in text box
|
31 |
-
- URL of article/news to be summarized
|
32 |
-
- .txt, .pdf, .docx file formats"""
|
33 |
-
)
|
34 |
st.markdown("---")
|
35 |
# ---------------------------
|
36 |
# SETUP & Constants
|
@@ -42,11 +34,6 @@ if __name__ == "__main__":
|
|
42 |
abs_min_length = 30
|
43 |
# ---------------------------
|
44 |
|
45 |
-
inp_text = st.text_input("Enter text or a url here")
|
46 |
-
st.markdown(
|
47 |
-
"<h3 style='text-align: center; color: green;'>OR</h3>",
|
48 |
-
unsafe_allow_html=True,
|
49 |
-
)
|
50 |
uploaded_file = st.file_uploader(
|
51 |
"Upload a .txt, .pdf, .docx file for summarization"
|
52 |
)
|
|
|
23 |
"Summarization type", options=["Extractive", "Abstractive"]
|
24 |
)
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
st.markdown("---")
|
27 |
# ---------------------------
|
28 |
# SETUP & Constants
|
|
|
34 |
abs_min_length = 30
|
35 |
# ---------------------------
|
36 |
|
|
|
|
|
|
|
|
|
|
|
37 |
uploaded_file = st.file_uploader(
|
38 |
"Upload a .txt, .pdf, .docx file for summarization"
|
39 |
)
|