sarim commited on
Commit
c7f6dea
·
1 Parent(s): a210ff4

decrease length

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -71,7 +71,7 @@ async def ppt_content(data):
71
 
72
  def ai_ppt(data):
73
  #call summerizer to summerize pdf
74
- summary = summarizer(data, max_length=4000, min_length=1000, truncation=True)
75
  print(summary)
76
  asyncio.run(ppt_content(data=data))
77
 
@@ -93,14 +93,15 @@ def extract_data(feed):
93
 
94
  def main():
95
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
 
 
96
  if uploaded_file is not None:
97
  extract_data(uploaded_file)
98
 
99
  binary_data = uploaded_file.getvalue()
100
  pdf_viewer(input=binary_data,
101
  width=700)
102
- if st.button("Make PPT"):
103
- ai_ppt(data)
104
 
105
  if __name__ == '__main__':
106
  import asyncio
 
71
 
72
  def ai_ppt(data):
73
  #call summerizer to summerize pdf
74
+ summary = summarizer(data, max_length=500, min_length=30, truncation=True)
75
  print(summary)
76
  asyncio.run(ppt_content(data=data))
77
 
 
93
 
94
  def main():
95
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
96
+ if st.button("Make PPT"):
97
+ ai_ppt(data)
98
  if uploaded_file is not None:
99
  extract_data(uploaded_file)
100
 
101
  binary_data = uploaded_file.getvalue()
102
  pdf_viewer(input=binary_data,
103
  width=700)
104
+
 
105
 
106
  if __name__ == '__main__':
107
  import asyncio