peter2000 commited on
Commit
1b008a7
1 Parent(s): 99c20f2

Update appStore/multiapp.py

Browse files
Files changed (1) hide show
  1. appStore/multiapp.py +13 -0
appStore/multiapp.py CHANGED
@@ -47,5 +47,18 @@ class MultiApp:
47
  'Go To',
48
  self.apps,
49
  format_func=lambda app: app['title'])
 
 
 
50
  file = st.file_uploader('Upload PDF File', type=['pdf', 'docx', 'txt'])
 
 
 
 
 
 
 
 
 
 
51
  app['function']()
 
47
  'Go To',
48
  self.apps,
49
  format_func=lambda app: app['title'])
50
+
51
+ with st.container():
52
+
53
  file = st.file_uploader('Upload PDF File', type=['pdf', 'docx', 'txt'])
54
+
55
+ if file is not None:
56
+
57
+
58
+ with tempfile.NamedTemporaryFile(mode="wb") as temp:
59
+ bytes_data = file.getvalue()
60
+ temp.write(bytes_data)
61
+
62
+ st.write("Filename: ", file.name)
63
+
64
  app['function']()