Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,8 @@ If you dont select any then the Consolidated report is relied upon to answer you
|
|
47 |
|
48 |
|
49 |
with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-component") as demo:
|
50 |
-
# user_id_state = gr.State([user_id])
|
51 |
|
|
|
52 |
with gr.Tab("AuditQ&A"):
|
53 |
|
54 |
with gr.Row(elem_id="chatbot-row"):
|
@@ -66,6 +66,67 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
66 |
|
67 |
with gr.Row(elem_id = "input-message"):
|
68 |
textbox=gr.Textbox(placeholder="Ask me anything here!",show_label=False,scale=7,lines = 1,interactive = True,elem_id="input-textbox")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
demo.queue()
|
70 |
|
71 |
demo.launch()
|
|
|
47 |
|
48 |
|
49 |
with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-component") as demo:
|
|
|
50 |
|
51 |
+
# main tab where chat interaction happens
|
52 |
with gr.Tab("AuditQ&A"):
|
53 |
|
54 |
with gr.Row(elem_id="chatbot-row"):
|
|
|
66 |
|
67 |
with gr.Row(elem_id = "input-message"):
|
68 |
textbox=gr.Textbox(placeholder="Ask me anything here!",show_label=False,scale=7,lines = 1,interactive = True,elem_id="input-textbox")
|
69 |
+
|
70 |
+
# static tab 'about us'
|
71 |
+
with gr.Tab("About",elem_classes = "max-height other-tabs"):
|
72 |
+
with gr.Row():
|
73 |
+
with gr.Column(scale=1):
|
74 |
+
gr.Markdown("""The <ins>[**Office of the Auditor General (OAG)**](https://www.oag.go.ug/welcome)</ins> in Uganda, \
|
75 |
+
consistent with the mandate of Supreme Audit Institutions (SAIs),\
|
76 |
+
remains integral in ensuring transparency and fiscal responsibility.\
|
77 |
+
Regularly, the OAG submits comprehensive audit reports to Parliament, \
|
78 |
+
which serve as instrumental references for both policymakers and the public, \
|
79 |
+
facilitating informed decisions regarding public expenditure.
|
80 |
+
|
81 |
+
However, the prevalent underutilization of these audit reports, \
|
82 |
+
leading to numerous unimplemented recommendations, has posed significant challenges\
|
83 |
+
to the effectiveness and impact of the OAG's operations. The audit reports made available \
|
84 |
+
to the public have not been effectively used by them and other relevant stakeholders. \
|
85 |
+
The current format of the audit reports is considered a challenge to the \
|
86 |
+
stakeholders' accessibility and usability. This in one way constrains transparency \
|
87 |
+
and accountability in the utilization of public funds and effective service delivery.
|
88 |
+
|
89 |
+
In the face of this, modern advancements in Artificial Intelligence (AI),\
|
90 |
+
particularly Retrieval Augmented Generation (RAG) technology, \
|
91 |
+
emerge as a promising solution. By harnessing the capabilities of such AI tools, \
|
92 |
+
there is an opportunity not only to improve the accessibility and understanding \
|
93 |
+
of these audit reports but also to ensure that their insights are effectively \
|
94 |
+
translated into actionable outcomes, thereby reinforcing public transparency \
|
95 |
+
and service delivery in Uganda.
|
96 |
+
|
97 |
+
To address these issues, the OAG has initiated several projects, \
|
98 |
+
such as the Audit Recommendation Tracking (ART) System and the Citizens Feedback Platform (CFP). \
|
99 |
+
These systems are designed to increase the transparency and relevance of audit activities. \
|
100 |
+
However, despite these efforts, engagement and awareness of the audit findings remain low, \
|
101 |
+
and the complexity of the information often hinders effective public utilization. Recognizing the need for further\
|
102 |
+
enhancement in how audit reports are processed and understood, \
|
103 |
+
the **Civil Society and Budget Advocacy Group (CSBAG)** in partnership with the **GIZ**, \
|
104 |
+
has recognizing the need for further enhancement in how audit reports are processed and understood.
|
105 |
+
|
106 |
+
This prototype tool leveraging AI (Artificial Intelligence) aims at offering critical capabilities such as '
|
107 |
+
summarizing complex texts, extracting thematic insights, and enabling interactive, \
|
108 |
+
user-friendly analysis through a chatbot interface. By making the audit reports more accessible,\
|
109 |
+
this aims to increase readership and utilization among stakeholders, \
|
110 |
+
which can lead to better accountability and improve service delivery
|
111 |
+
|
112 |
+
""")
|
113 |
+
|
114 |
+
|
115 |
+
# static tab for disclaimer
|
116 |
+
with gr.Tab("Disclaimer",elem_classes = "max-height other-tabs"):
|
117 |
+
with gr.Row():
|
118 |
+
with gr.Column(scale=1):
|
119 |
+
gr.Markdown("""
|
120 |
+
- This chatbot is intended for specific use of answering the questions based on audit reports published by OAG, for any use beyond this scope we have no liability to response provided by chatbot.
|
121 |
+
- We do not guarantee the accuracy, reliability, or completeness of any information provided by the chatbot and disclaim any liability or responsibility for actions taken based on its responses.
|
122 |
+
- The chatbot may occasionally provide inaccurate or inappropriate responses, and it is important to exercise judgment and critical thinking when interpreting its output.
|
123 |
+
- The chatbot responses should not be considered professional or authoritative advice and are generated based on patterns in the data it has been trained on.
|
124 |
+
- The chatbot's responses do not reflect the opinions or policies of our organization or its affiliates.
|
125 |
+
- Any personal or sensitive information shared with the chatbot is at the user's own risk, and we cannot guarantee complete privacy or confidentiality.
|
126 |
+
- the chatbot is not deterministic, so there might be change in answer to same question when asked by different users or multiple times.
|
127 |
+
- By using this chatbot, you agree to these terms and acknowledge that you are solely responsible for any reliance on or actions taken based on its responses.
|
128 |
+
- **This is just a prototype and being tested and worked upon, so its not perfect and may sometimes give irrelevant answers**. If you are not satisfied with the answer, please ask a more specific question or report your feedback to help us improve the system.
|
129 |
+
""")
|
130 |
demo.queue()
|
131 |
|
132 |
demo.launch()
|