Sharvesh commited on
Commit
a03cf18
1 Parent(s): 4a1d3c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -18,16 +18,15 @@ if __name__ == "__main__":
18
  # ---------------------------------
19
  # Main Application
20
  # ---------------------------------
21
- st.title("Text Summarizer 📝")
22
 
23
- st.markdown("Creator: [Atharva Ingle](https://github.com/Gladiator07)")
24
- st.markdown(
25
- "Source code: [GitHub Repository](https://github.com/Gladiator07/Text-Summarizer)"
26
- )
27
  summarize_type = st.sidebar.selectbox(
28
  "Summarization type", options=["Extractive", "Abstractive"]
29
  )
30
-
 
 
31
  st.markdown(
32
  "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:"
33
  )
@@ -38,6 +37,7 @@ if __name__ == "__main__":
38
  )
39
  st.markdown(
40
  """This app supports two type of summarization:
 
41
 
42
  1. **Extractive Summarization**: The extractive approach involves picking up the most important phrases and lines from the documents. It then combines all the important lines to create the summary. So, in this case, every line and word of the summary actually belongs to the original document which is summarized.
43
  2. **Abstractive Summarization**: The abstractive approach involves rephrasing the complete document while capturing the complete meaning of the document. This type of summarization provides more human-like summary"""
@@ -122,9 +122,3 @@ if __name__ == "__main__":
122
  # final summarized output
123
  st.subheader("Summarized text")
124
  st.info(summarized_text)
125
-
126
- st.subheader("Rogue Scores")
127
- rouge_sc = Rouge()
128
- ground_truth = cleaned_txt[0] if is_url else cleaned_txt
129
- score = rouge_sc.get_scores(summarized_text, ground_truth, avg=True)
130
- st.code(score)
 
18
  # ---------------------------------
19
  # Main Application
20
  # ---------------------------------
21
+ st.title("Anavya-Text Summarizer 📝")
22
 
23
+ st.markdown("Creator: [Team Anavya](Sharvesh")
 
 
 
24
  summarize_type = st.sidebar.selectbox(
25
  "Summarization type", options=["Extractive", "Abstractive"]
26
  )
27
+ st.markdown(
28
+ "Children with learning disabilities face unique challenges in the education system. These challenges can include difficulties in reading, comprehending, and summarizing lengthy texts, making it harder for them to keep up with their peers. However, the use of text summarization technology can be a game-changer in improving their learning experiences
29
+ ")
30
  st.markdown(
31
  "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:"
32
  )
 
37
  )
38
  st.markdown(
39
  """This app supports two type of summarization:
40
+
41
 
42
  1. **Extractive Summarization**: The extractive approach involves picking up the most important phrases and lines from the documents. It then combines all the important lines to create the summary. So, in this case, every line and word of the summary actually belongs to the original document which is summarized.
43
  2. **Abstractive Summarization**: The abstractive approach involves rephrasing the complete document while capturing the complete meaning of the document. This type of summarization provides more human-like summary"""
 
122
  # final summarized output
123
  st.subheader("Summarized text")
124
  st.info(summarized_text)