ppsingh commited on
Commit
85cdd1a
·
verified ·
1 Parent(s): f4e2c17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -5,13 +5,13 @@ import json
5
  st.set_page_config(page_title = 'Climate Policy Intelligence',
6
  initial_sidebar_state='expanded', layout="wide")
7
 
8
-
9
  import appStore.target as tapp_extraction
10
  import appStore.sector as sector
11
  import appStore.adapmit as adapmit
12
  import appStore.conditional as conditional
13
  import appStore.subtarget as subtarget
14
  import appStore.category as category
 
15
  import appStore.doc_processing as processing
16
  from utils.uploadAndExample import add_upload
17
  from PIL import Image
@@ -112,17 +112,20 @@ if st.button("Analyze Document"):
112
 
113
 
114
  if 'key1' in st.session_state:
 
 
115
  with st.sidebar:
116
  topic = st.radio(
117
  "Which category you want to explore?",
118
- ('Target', 'Action', 'Policies/Plans'))
119
 
120
- if topic == 'Target':
121
- st.dataframe(st.session_state['key1'])
 
122
 
123
  #target_extraction.target_display()
124
- elif topic == 'Action':
125
- pass
126
  #policyaction.action_display()
127
  else:
128
  pass
 
5
  st.set_page_config(page_title = 'Climate Policy Intelligence',
6
  initial_sidebar_state='expanded', layout="wide")
7
 
 
8
  import appStore.target as tapp_extraction
9
  import appStore.sector as sector
10
  import appStore.adapmit as adapmit
11
  import appStore.conditional as conditional
12
  import appStore.subtarget as subtarget
13
  import appStore.category as category
14
+ import appStore.iki_sheets as iki_sheets
15
  import appStore.doc_processing as processing
16
  from utils.uploadAndExample import add_upload
17
  from PIL import Image
 
112
 
113
 
114
  if 'key1' in st.session_state:
115
+ iki_sheets.netzero()
116
+ iki_sheets.targets()
117
  with st.sidebar:
118
  topic = st.radio(
119
  "Which category you want to explore?",
120
+ ('Netzero', 'Targets', 'Policies/Plans'))
121
 
122
+ if topic == 'Netzero':
123
+ st.dataframe(st.session_state['netzero_hits'])
124
+
125
 
126
  #target_extraction.target_display()
127
+ elif topic == 'Targets':
128
+ st.dataframe(st.session_state['target_hits'])
129
  #policyaction.action_display()
130
  else:
131
  pass