NBayer commited on
Commit
5f00b64
·
1 Parent(s): a8c17cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,7 +24,7 @@ def get_pdf_text(pdf_path):
24
 
25
  return pdf_text
26
 
27
- sum_model = pipeline("text2text-generation", model="yasminesarraj/flan-t5-small-samsum")
28
 
29
  headers = {"Authorization": st.secrets["HF_AUTH"]}
30
 
@@ -98,9 +98,9 @@ with tab_your_paper:
98
  else:
99
  st.markdown("#### Summary of your paper:")
100
  st.write(summary)
101
- else:
102
- with col1:
103
- st.write(sum_model(all_text_together))
104
 
105
  if tags_available == True:
106
  with col2:
 
24
 
25
  return pdf_text
26
 
27
+ # sum_model = pipeline("text2text-generation", model="yasminesarraj/flan-t5-small-samsum")
28
 
29
  headers = {"Authorization": st.secrets["HF_AUTH"]}
30
 
 
98
  else:
99
  st.markdown("#### Summary of your paper:")
100
  st.write(summary)
101
+ # else:
102
+ # with col1:
103
+ # st.write(sum_model(all_text_together))
104
 
105
  if tags_available == True:
106
  with col2: