sarim commited on
Commit
0042245
·
1 Parent(s): 1bc946f

non null data

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -84,6 +84,7 @@ def extract_data(feed):
84
  for p in pages:
85
  data.append(p.extract_text())
86
 
 
87
  return None
88
 
89
 
@@ -94,11 +95,13 @@ def extract_data(feed):
94
 
95
  def main():
96
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
97
- if st.button("Make PPT"):
98
- ai_ppt(data)
99
  if uploaded_file is not None:
100
  extract_data(uploaded_file)
101
 
 
 
 
102
  binary_data = uploaded_file.getvalue()
103
  pdf_viewer(input=binary_data,
104
  width=700)
 
84
  for p in pages:
85
  data.append(p.extract_text())
86
 
87
+
88
  return None
89
 
90
 
 
95
 
96
  def main():
97
  uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
98
+
 
99
  if uploaded_file is not None:
100
  extract_data(uploaded_file)
101
 
102
+ if st.button("Make PPT"):
103
+ ai_ppt(data)
104
+
105
  binary_data = uploaded_file.getvalue()
106
  pdf_viewer(input=binary_data,
107
  width=700)