sarim commited on
Commit
a91875b
·
1 Parent(s): 5d14cc6

button click

Browse files
Files changed (1) hide show
  1. app.py +17 -12
app.py CHANGED
@@ -39,18 +39,23 @@ def extract_data(feed):
39
  data.append(p.extract_text())
40
  return None
41
 
42
- uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
43
- if uploaded_file is not None:
44
- df = extract_data(uploaded_file)
45
-
46
- if data is not None:
47
- st.caption(data)
48
- ai_ppt(data=data)
49
-
50
- # if __name__ == '__main__':
51
- # import asyncio
52
- # nest_asyncio.apply()
53
- # asyncio.run(ppt_content())
 
 
 
 
 
54
 
55
 
56
 
 
39
  data.append(p.extract_text())
40
  return None
41
 
42
+
43
+
44
+ # if data is not None:
45
+ # st.caption(data)
46
+ # ai_ppt(data=data)
47
+
48
+ def main():
49
+ uploaded_file = st.file_uploader('Choose your .pdf file', type="pdf")
50
+ if uploaded_file is not None:
51
+ extract_data(uploaded_file)
52
+ if st.button("Search"):
53
+ ai_ppt(data)
54
+
55
+ if __name__ == '__main__':
56
+ import asyncio
57
+ nest_asyncio.apply()
58
+ asyncio.run(main())
59
 
60
 
61