Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,13 @@ def main():
|
|
| 69 |
elif choice=="Summarizer":
|
| 70 |
st.subheader("Text Summarization")
|
| 71 |
st.write(" Enter the Text you want to summarize !")
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
num_words = st.number_input("Enter Number of Words in Summary")
|
| 74 |
|
| 75 |
if raw_text!="" and num_words is not None:
|
|
|
|
| 69 |
elif choice=="Summarizer":
|
| 70 |
st.subheader("Text Summarization")
|
| 71 |
st.write(" Enter the Text you want to summarize !")
|
| 72 |
+
documents = {
|
| 73 |
+
"Document 1": "This is the text for document 1.",
|
| 74 |
+
"Document 2": "This is the text for document 2.",
|
| 75 |
+
"Document 3": "This is the text for document 3."
|
| 76 |
+
}
|
| 77 |
+
document_name = st.selectbox("Select a document", list(documents.keys()))
|
| 78 |
+
raw_text = documents[document_name]
|
| 79 |
num_words = st.number_input("Enter Number of Words in Summary")
|
| 80 |
|
| 81 |
if raw_text!="" and num_words is not None:
|