Soumen commited on
Commit
4024400
·
1 Parent(s): 95e94b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -42,8 +42,7 @@ import pdf2image
42
  # NLP Pkgs
43
  from textblob import TextBlob
44
  import spacy
45
- #import gensim
46
- from gensim.summarization.summarize import summarize
47
  import requests
48
  import cv2
49
  import numpy as np
@@ -184,7 +183,7 @@ def main():
184
  message = st.text_area("Enter the Text","Type please ..")
185
  st.text("Using Gensim Summarizer ..")
186
  st.success(mess)
187
- summary_result = summarize(text)
188
  st.success(summary_result)
189
  if st.checkbox("Mark to better English Text Summarization!"):
190
  #st.title("Summarize Your Text for English only!")
 
42
  # NLP Pkgs
43
  from textblob import TextBlob
44
  import spacy
45
+ import gensim
 
46
  import requests
47
  import cv2
48
  import numpy as np
 
183
  message = st.text_area("Enter the Text","Type please ..")
184
  st.text("Using Gensim Summarizer ..")
185
  st.success(mess)
186
+ summary_result = gensim.summarization.summarize(text)
187
  st.success(summary_result)
188
  if st.checkbox("Mark to better English Text Summarization!"):
189
  #st.title("Summarize Your Text for English only!")