domro11 commited on
Commit
03d061d
·
1 Parent(s): 3229f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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
- raw_text = st.text_area("Your Text","Enter Your Text Here")
 
 
 
 
 
 
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: