Spaces:
Runtime error
Runtime error
LOUIS SANNA
commited on
Commit
·
3a575de
1
Parent(s):
942ee37
feat(UI): remove climate ref
Browse files
app.py
CHANGED
@@ -483,66 +483,49 @@ with gr.Blocks(title="❓ Q&A", css="style.css", theme=theme) as demo:
|
|
483 |
# OTHER TABS
|
484 |
# ---------------------------------------------------------------------------------------
|
485 |
|
486 |
-
with gr.Tab("ℹ️ About
|
487 |
-
|
488 |
-
|
489 |
-
gr.Markdown(
|
490 |
-
"""
|
491 |
-
<p><b>Climate change and environmental disruptions have become some of the most pressing challenges facing our planet today</b>. As global temperatures rise and ecosystems suffer, it is essential for individuals to understand the gravity of the situation in order to make informed decisions and advocate for appropriate policy changes.</p>
|
492 |
-
<p>However, comprehending the vast and complex scientific information can be daunting, as the scientific consensus references, such as <b>the Intergovernmental Panel on Climate Change (IPCC) reports, span thousands of pages</b>. To bridge this gap and make climate science more accessible, we introduce <b>ClimateQ&A as a tool to distill expert-level knowledge into easily digestible insights about climate science.</b></p>
|
493 |
<div class="tip-box">
|
494 |
<div class="tip-box-title">
|
495 |
<span class="light-bulb" role="img" aria-label="Light Bulb">💡</span>
|
496 |
-
How does
|
497 |
</div>
|
498 |
-
|
499 |
</div>
|
500 |
"""
|
501 |
-
|
502 |
-
|
503 |
-
with gr.Column(scale=1):
|
504 |
-
gr.Markdown("![](https://i.postimg.cc/fLvsvMzM/Untitled-design-5.png)")
|
505 |
-
gr.Markdown(
|
506 |
-
"*Source : IPCC AR6 - Synthesis Report of the IPCC 6th assessment report (AR6)*"
|
507 |
-
)
|
508 |
|
509 |
-
gr.Markdown("## How to use
|
510 |
-
|
511 |
-
|
512 |
-
gr.Markdown(
|
513 |
-
"""
|
514 |
### 💪 Getting started
|
515 |
-
- In the chatbot section, simply type your
|
516 |
-
-
|
517 |
- Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
|
518 |
- Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
|
519 |
-
- You can ask question in any language,
|
520 |
-
- ClimateQ&A integrates multiple sources (IPCC and IPBES, … ) to cover various aspects of environmental science, such as climate change and biodiversity. See all sources used below.
|
521 |
"""
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
### ⚠️ Limitations
|
527 |
<div class="warning-box">
|
528 |
<ul>
|
529 |
<li>Please note that, like any AI, the model may occasionally generate an inaccurate or imprecise answer. Always refer to the provided sources to verify the validity of the information given. If you find any issues with the response, kindly provide feedback to help improve the system.</li>
|
530 |
-
<li>ClimateQ&A is specifically designed for climate-related inquiries. If you ask a non-environmental question, the chatbot will politely remind you that its focus is on climate and environmental issues.</li>
|
531 |
</div>
|
532 |
"""
|
533 |
-
|
534 |
|
535 |
-
with gr.Tab("
|
536 |
gr.Markdown(
|
537 |
"""
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
- ClimateQ&A welcomes community contributions. To participate, head over to the Community Tab and create a "New Discussion" to ask questions and share your insights.
|
542 |
-
- Provide feedback through email, letting us know which insights you found accurate, useful, or not. Your input will help us improve the platform.
|
543 |
-
- Only a few sources (see below) are integrated (all IPCC, IPBES), if you are a climate science researcher and net to sift through another report, please let us know.
|
544 |
|
545 |
-
*This tool
|
546 |
"""
|
547 |
)
|
548 |
|
@@ -613,7 +596,9 @@ Or around 2 to 4 times more than a typical Google search.
|
|
613 |
|
614 |
##### v1.0.0 - 2023-10-25
|
615 |
|
616 |
-
-
|
|
|
|
|
617 |
- Added support for other topics
|
618 |
"""
|
619 |
)
|
|
|
483 |
# OTHER TABS
|
484 |
# ---------------------------------------------------------------------------------------
|
485 |
|
486 |
+
with gr.Tab("ℹ️ About", elem_classes="max-height"):
|
487 |
+
gr.Markdown(
|
488 |
+
"""
|
|
|
|
|
|
|
|
|
489 |
<div class="tip-box">
|
490 |
<div class="tip-box-title">
|
491 |
<span class="light-bulb" role="img" aria-label="Light Bulb">💡</span>
|
492 |
+
How does this tool work?
|
493 |
</div>
|
494 |
+
This tool harnesses modern OCR techniques to parse and preprocess documents. By leveraging state-of-the-art question-answering algorithms, <i>our tool is able to sift through the extensive collection of trusted sources and identify relevant passages in response to user inquiries</i>. Furthermore, the integration of the ChatGPT API allows Q&A to present complex data in a user-friendly manner, summarizing key points and facilitating communication to a wider audience.
|
495 |
</div>
|
496 |
"""
|
497 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
|
499 |
+
gr.Markdown("## How to use")
|
500 |
+
gr.Markdown(
|
501 |
+
"""
|
|
|
|
|
502 |
### 💪 Getting started
|
503 |
+
- In the chatbot section, simply type your question, and the app will provide an answer with references to relevant sources.
|
504 |
+
- the app retrieves specific passages to help answer your question accurately.
|
505 |
- Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
|
506 |
- Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
|
507 |
+
- You can ask question in any language, the tool is multi-lingual !
|
|
|
508 |
"""
|
509 |
+
)
|
510 |
+
|
511 |
+
gr.Markdown(
|
512 |
+
"""
|
513 |
### ⚠️ Limitations
|
514 |
<div class="warning-box">
|
515 |
<ul>
|
516 |
<li>Please note that, like any AI, the model may occasionally generate an inaccurate or imprecise answer. Always refer to the provided sources to verify the validity of the information given. If you find any issues with the response, kindly provide feedback to help improve the system.</li>
|
|
|
517 |
</div>
|
518 |
"""
|
519 |
+
)
|
520 |
|
521 |
+
with gr.Tab("👩💻 Community"):
|
522 |
gr.Markdown(
|
523 |
"""
|
524 |
+
We welcomes community contributions.
|
525 |
+
|
526 |
+
To participate, head over to the Community Tab and create a "New Discussion" to ask questions and share your insights.
|
|
|
|
|
|
|
527 |
|
528 |
+
*This tool is a fork from the work done by the R&D lab at **Ekimetrics** for Climate Q&A: https://climateqa.com/.*
|
529 |
"""
|
530 |
)
|
531 |
|
|
|
596 |
|
597 |
##### v1.0.0 - 2023-10-25
|
598 |
|
599 |
+
- Forked ClimateQ&A
|
600 |
+
- Added Chroma as vector store
|
601 |
+
- Added support for OpenAI api
|
602 |
- Added support for other topics
|
603 |
"""
|
604 |
)
|