Spaces:
Runtime error
Runtime error
Create new file
Browse files- appStore/info.py +50 -0
appStore/info.py
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
|
4 |
+
def app():
|
5 |
+
with open('style.css') as f:
|
6 |
+
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
7 |
+
footer = """
|
8 |
+
<div class="footer-custom">
|
9 |
+
Developer - <a href="https://www.linkedin.com/in/erik-lehmann-giz/" target="_blank">Erik Lehmann</a> |
|
10 |
+
<a href="https://www.linkedin.com/in/jonas-nothnagel-bb42b114b/" target="_blank">Jonas Nothnagel</a> |
|
11 |
+
<a href="https://www.linkedin.com/in/prashantpsingh/" target="_blank">Prashant Singh</a> |
|
12 |
+
Guidance & Feedback - Maren Bernlöhr | Manuel Kuhn </a>
|
13 |
+
</div>
|
14 |
+
"""
|
15 |
+
st.markdown(footer, unsafe_allow_html=True)
|
16 |
+
|
17 |
+
st.subheader("Intro")
|
18 |
+
intro = """
|
19 |
+
<div class="text">
|
20 |
+
The manual extraction of relevant information from text documents is a time-consuming task for any policy analyst.
|
21 |
+
As the amount and length of public policy documents in relation to sustainable development (such as National Development Plans and
|
22 |
+
Nationally Determined Contributions) continuously increases, a major challenge for policy action tracking – the evaluation of stated
|
23 |
+
goals and targets and their actual implementation on the ground – arises. Luckily, Artificial Intelligence (AI) and Natural Language Processing (NLP)
|
24 |
+
methods can help in shortening and easing this task for policy analysts.
|
25 |
+
For this purpose, the United Nations Sustainable Development Solutions Network (SDSN) and the Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
|
26 |
+
are collaborating since 2021 in the development of an AI-powered open-source web application that helps find and extract relevant information from public policy
|
27 |
+
documents faster to facilitate evidence-based decision-making processes in sustainable development and beyond.
|
28 |
+
|
29 |
+
<ul>
|
30 |
+
<li>Analizing the policy document</li>
|
31 |
+
<li>finding SDG related content</li>
|
32 |
+
<li>Make it searchable</li>
|
33 |
+
<li>compare it to the national NDC</li>
|
34 |
+
</ul>
|
35 |
+
</div>
|
36 |
+
<br>
|
37 |
+
"""
|
38 |
+
st.markdown(intro, unsafe_allow_html=True)
|
39 |
+
st.image("lfqa.png", caption="LFQA Architecture")
|
40 |
+
st.subheader("UI/UX")
|
41 |
+
st.write("Each sentence in the generated answer ends with a coloured tooltip; the colour ranges from red to green. "
|
42 |
+
"The tooltip contains a value representing answer sentence similarity to a specific sentence in the "
|
43 |
+
"Wikipedia context passages retrieved. Mouseover on the tooltip will show the sentence from the "
|
44 |
+
"Wikipedia context passage. If a sentence similarity is 1.0, the seq2seq model extracted and "
|
45 |
+
"copied the sentence verbatim from Wikipedia context passages. Lower values of sentence "
|
46 |
+
"similarity indicate the seq2seq model is struggling to generate a relevant sentence for the question "
|
47 |
+
"asked.")
|
48 |
+
st.image("wikipedia_answer.png", caption="Answer with similarity tooltips")
|
49 |
+
|
50 |
+
|