ppsingh commited on
Commit
edd4d08
·
verified ·
1 Parent(s): cadad7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -16,10 +16,12 @@ import appStore.doc_processing as processing
16
  import appStore.excel_convert as excel_convert
17
  from utils.uploadAndExample import add_upload
18
  from PIL import Image
19
-
 
20
 
21
  with st.sidebar:
22
  # upload and example doc
 
23
  choice = st.sidebar.radio(label = 'Select the Document',
24
  help = 'You can upload the document \
25
  or else you can try a example document',
@@ -93,6 +95,15 @@ with st.expander("ℹ️ - About this app", expanded=False):
93
  """)
94
 
95
  st.write("")
 
 
 
 
 
 
 
 
 
96
  apps = [processing.app, tapp_extraction.app, sector.app, adapmit.app,
97
  conditional.app, subtarget.app, category.app]
98
 
 
16
  import appStore.excel_convert as excel_convert
17
  from utils.uploadAndExample import add_upload
18
  from PIL import Image
19
+ import pkg_resources
20
+ installed_packages = pkg_resources.working_set
21
 
22
  with st.sidebar:
23
  # upload and example doc
24
+
25
  choice = st.sidebar.radio(label = 'Select the Document',
26
  help = 'You can upload the document \
27
  or else you can try a example document',
 
95
  """)
96
 
97
  st.write("")
98
+ c4, c5, c6 = st.columns([12,1,10])
99
+ with c3:
100
+ list_ = ""
101
+ for package in installed_packages:
102
+ list_ + f"{package.key}=={package.version}\n")
103
+
104
+ st.download_button('Download Requirements', text_contents, file_name='requirements.txt')
105
+
106
+
107
  apps = [processing.app, tapp_extraction.app, sector.app, adapmit.app,
108
  conditional.app, subtarget.app, category.app]
109