Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
# shifted from below - this must be the first streamlit call; otherwise: problems
|
4 |
st.set_page_config(page_title = 'Climate Policy Intelligence',
|
@@ -18,7 +19,9 @@ with st.sidebar:
|
|
18 |
or else you can try a example document',
|
19 |
options = ('Upload Document', 'Try Example'),
|
20 |
horizontal = True)
|
21 |
-
|
|
|
|
|
22 |
|
23 |
with st.container():
|
24 |
st.markdown("<h2 style='text-align: center; color: black;'> Climate Policy Understanding App </h2>", unsafe_allow_html=True)
|
|
|
1 |
import streamlit as st
|
2 |
+
import json
|
3 |
|
4 |
# shifted from below - this must be the first streamlit call; otherwise: problems
|
5 |
st.set_page_config(page_title = 'Climate Policy Intelligence',
|
|
|
19 |
or else you can try a example document',
|
20 |
options = ('Upload Document', 'Try Example'),
|
21 |
horizontal = True)
|
22 |
+
with(open('docStore/sample/files.json','r')) as json_file:
|
23 |
+
files = json.load(json_file)
|
24 |
+
add_upload(choice, files)
|
25 |
|
26 |
with st.container():
|
27 |
st.markdown("<h2 style='text-align: center; color: black;'> Climate Policy Understanding App </h2>", unsafe_allow_html=True)
|