Spaces:
Running
on
T4
Running
on
T4
adding anonymized geotag & adding Ugandan context info
Browse files
app.py
CHANGED
@@ -415,14 +415,14 @@ theme = gr.themes.Base(
|
|
415 |
)
|
416 |
|
417 |
init_prompt = """
|
418 |
-
Hello, I am Audit Q&A, an AI-powered conversational assistant designed to help you understand audit
|
419 |
💡 How to use (tabs on right)
|
420 |
- **Reports**: You can choose to address your question to either specific report or a collection of report like District or Ministry focused reports. \
|
421 |
If you dont select any then the Consolidated report is relied upon to answer your question.
|
422 |
- **Examples**: We have curated some example questions,select a particular question from category of questions.
|
423 |
- **Sources**: This tab will display the relied upon paragraphs from the report, to help you in assessing or fact checking if the answer provided by Audit Q&A assitant is correct or not.
|
424 |
⚠️ For limitations of the tool and collection of usage statistics and data please check **Disclaimer** tab.
|
425 |
-
⚠️ By using this app, you acknowledge that we collect usage statistics (such as question asked, feedback given, session duration and
|
426 |
"""
|
427 |
|
428 |
|
@@ -677,7 +677,8 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
677 |
with gr.Row():
|
678 |
with gr.Column(scale=1):
|
679 |
gr.Markdown("""
|
680 |
-
- 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.
|
|
|
681 |
- We have implemented measures to ensure the technical robustness and security of our AI system, minimizing unexpected behaviour, however we do not guarantee the full reliability, or completeness of any information provided by the chatbot and disclaim any liability or responsibility for actions taken based on its responses.
|
682 |
- The chatbot may occasionally provide inaccurate or inappropriate responses, and it is important to exercise judgment and critical thinking when interpreting its output.
|
683 |
- The use of AI within this application is transparent. When interacting with the AI, users are informed that they are engaging with an AI system
|
@@ -689,7 +690,7 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
689 |
- The questions you ask
|
690 |
- The AI-generated answers
|
691 |
- Feedback given towards to each response (in form of Thumbs-up and Thumbs-down), if any.
|
692 |
-
- Usage statistics such as session duration and
|
693 |
|
694 |
We process this data based on our legitimate interest in continually enhancing the quality, security, and usability of the Audit Q&A assistant
|
695 |
- 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.
|
@@ -731,7 +732,7 @@ with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-
|
|
731 |
@demo.load(api_name="get_client_ip")
|
732 |
def get_client_ip_handler(dummy_input="", request: gr.Request = None):
|
733 |
"""Handler for getting client IP in Gradio context"""
|
734 |
-
return get_client_ip(request
|
735 |
|
736 |
|
737 |
#-------------------- Gradio voodoo -------------------------
|
|
|
415 |
)
|
416 |
|
417 |
init_prompt = """
|
418 |
+
Hello, I am Audit Q&A, an AI-powered conversational assistant designed to help you understand audit reports. I will answer your questions by using **Audit reports publishsed by Auditor General Office, Uganda**.
|
419 |
💡 How to use (tabs on right)
|
420 |
- **Reports**: You can choose to address your question to either specific report or a collection of report like District or Ministry focused reports. \
|
421 |
If you dont select any then the Consolidated report is relied upon to answer your question.
|
422 |
- **Examples**: We have curated some example questions,select a particular question from category of questions.
|
423 |
- **Sources**: This tab will display the relied upon paragraphs from the report, to help you in assessing or fact checking if the answer provided by Audit Q&A assitant is correct or not.
|
424 |
⚠️ For limitations of the tool and collection of usage statistics and data please check **Disclaimer** tab.
|
425 |
+
⚠️ By using this app, you acknowledge that we collect usage statistics (such as question asked, feedback given, session duration, device type and anonymized geo-location) to understand performance and continuously improve the tool, based on our legitimate interest in enhancing our services.
|
426 |
"""
|
427 |
|
428 |
|
|
|
677 |
with gr.Row():
|
678 |
with gr.Column(scale=1):
|
679 |
gr.Markdown("""
|
680 |
+
- This chatbot is intended for specific use of answering the questions based on audit reports published by OAG, Uganda for any use beyond this scope we have no liability to response provided by chatbot.
|
681 |
+
- The functionality and scope of this chatbot is limited to the context contained in audit reports published by OAG, Uganda in national context.
|
682 |
- We have implemented measures to ensure the technical robustness and security of our AI system, minimizing unexpected behaviour, however we do not guarantee the full reliability, or completeness of any information provided by the chatbot and disclaim any liability or responsibility for actions taken based on its responses.
|
683 |
- The chatbot may occasionally provide inaccurate or inappropriate responses, and it is important to exercise judgment and critical thinking when interpreting its output.
|
684 |
- The use of AI within this application is transparent. When interacting with the AI, users are informed that they are engaging with an AI system
|
|
|
690 |
- The questions you ask
|
691 |
- The AI-generated answers
|
692 |
- Feedback given towards to each response (in form of Thumbs-up and Thumbs-down), if any.
|
693 |
+
- Usage statistics such as session duration, device type and anonymized geo-location information.
|
694 |
|
695 |
We process this data based on our legitimate interest in continually enhancing the quality, security, and usability of the Audit Q&A assistant
|
696 |
- 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.
|
|
|
732 |
@demo.load(api_name="get_client_ip")
|
733 |
def get_client_ip_handler(dummy_input="", request: gr.Request = None):
|
734 |
"""Handler for getting client IP in Gradio context"""
|
735 |
+
return get_client_ip(request)
|
736 |
|
737 |
|
738 |
#-------------------- Gradio voodoo -------------------------
|