Soumen commited on
Commit
b4eff56
1 Parent(s): 2181afa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -56,13 +56,7 @@ def read_pdf(file):
56
  #def read_pdf_with_pdfplumber(file):
57
  # with pdfplumber.open(file) as pdf:
58
  # page = pdf.pages[0]
59
- # return page.extract_text()
60
-
61
-
62
- # Title
63
- if st.button("REFRESH"):
64
- st.experimental_rerun()
65
-
66
  st.title("Streamlit NLP APP")
67
  @st.experimental_singleton
68
  def text_analyzer(my_text):
@@ -161,6 +155,10 @@ def main():
161
  summary_ids = model.generate(inputs, max_length=150, min_length=80, length_penalty=5., num_beams=2)
162
  summary = tokenizer.decode(summary_ids[0])
163
  st.success(summary)
 
 
 
 
164
  st.sidebar.subheader("About App")
165
  st.sidebar.markdown("By [Soumen Sarker](https://soumen-sarker-personal-website.streamlitapp.com/)")
166
  if __name__ == '__main__':
 
56
  #def read_pdf_with_pdfplumber(file):
57
  # with pdfplumber.open(file) as pdf:
58
  # page = pdf.pages[0]
59
+ # return page.extract_text()s
 
 
 
 
 
 
60
  st.title("Streamlit NLP APP")
61
  @st.experimental_singleton
62
  def text_analyzer(my_text):
 
155
  summary_ids = model.generate(inputs, max_length=150, min_length=80, length_penalty=5., num_beams=2)
156
  summary = tokenizer.decode(summary_ids[0])
157
  st.success(summary)
158
+ # Title
159
+ if st.button("REFRESH"):
160
+ @st.experimental_rerun()
161
+
162
  st.sidebar.subheader("About App")
163
  st.sidebar.markdown("By [Soumen Sarker](https://soumen-sarker-personal-website.streamlitapp.com/)")
164
  if __name__ == '__main__':