Adding translation in
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def chat(
|
|
133 |
sources = "\n\n".join(
|
134 |
[f"query used for retrieval:\n{reformulated_query}"]
|
135 |
+ [
|
136 |
-
f"📃 doc {i}: {d.meta['file_name']} page {d.meta['page_number']}\n{d.content.replace(
|
137 |
for i, d in enumerate(docs, 1)
|
138 |
]
|
139 |
)
|
@@ -324,7 +324,7 @@ Version 0.2-beta - This tool is under active development
|
|
324 |
- ClimateQ&A retrieves specific passages from the IPCC reports to help answer your question accurately.
|
325 |
- Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
|
326 |
- Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
|
327 |
-
- ClimateQ&A integrates multiple sources (IPCC, IPBES, IEA,
|
328 |
"""
|
329 |
)
|
330 |
with gr.Column(scale=1):
|
@@ -392,7 +392,6 @@ Version 0.2-beta - This tool is under active development
|
|
392 |
| IPBES | IPBES Global report on Biodiversity - March 2022 | https://www.ipbes.net/global-assessment | 1148 pages | June 2022 |
|
393 |
| FAO | Food Outlook Biannual Report on Global Food Markets | https://www.fao.org/documents/card/en/c/cb9427en | 174 pages | June 2022 |
|
394 |
| IEA | IEA’s report on the Role of Critical Minerals in Clean Energy Transitions | https://www.iea.org/reports/the-role-of-critical-minerals-in-clean-energy-transitions | 287 pages | May 2021 |
|
395 |
-
| Club de Rome | Limits to Growth | https://www.donellameadows.org/wp-content/userfiles/Limits-to-Growth-digital-scan-version.pdf | 211 pages | 1972 |
|
396 |
| | Outside The Safe operating system of the Planetary Boundary for Novel Entities | https://pubs.acs.org/doi/10.1021/acs.est.1c04158 | 12 pages | January 2022 |
|
397 |
| | Planetary boundaries: Guiding human development on a changing planet | https://www.science.org/doi/10.1126/science.1259855 | 11 pages | February 2015 |
|
398 |
| UNFCCC | State of the Oceans report | https://unfccc.int/documents/568128 | 75 pages | August 2022 |
|
|
|
133 |
sources = "\n\n".join(
|
134 |
[f"query used for retrieval:\n{reformulated_query}"]
|
135 |
+ [
|
136 |
+
f"📃 doc {i}: {d.meta['file_name']} page {d.meta['page_number']}\n{d.content.replace('\r\n','')}"
|
137 |
for i, d in enumerate(docs, 1)
|
138 |
]
|
139 |
)
|
|
|
324 |
- ClimateQ&A retrieves specific passages from the IPCC reports to help answer your question accurately.
|
325 |
- Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
|
326 |
- Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
|
327 |
+
- ClimateQ&A integrates multiple sources (IPCC, IPBES, IEA, … ) to cover various aspects of environmental science, such as climate change, biodiversity, energy, economy, and pollution. See all sources used below.
|
328 |
"""
|
329 |
)
|
330 |
with gr.Column(scale=1):
|
|
|
392 |
| IPBES | IPBES Global report on Biodiversity - March 2022 | https://www.ipbes.net/global-assessment | 1148 pages | June 2022 |
|
393 |
| FAO | Food Outlook Biannual Report on Global Food Markets | https://www.fao.org/documents/card/en/c/cb9427en | 174 pages | June 2022 |
|
394 |
| IEA | IEA’s report on the Role of Critical Minerals in Clean Energy Transitions | https://www.iea.org/reports/the-role-of-critical-minerals-in-clean-energy-transitions | 287 pages | May 2021 |
|
|
|
395 |
| | Outside The Safe operating system of the Planetary Boundary for Novel Entities | https://pubs.acs.org/doi/10.1021/acs.est.1c04158 | 12 pages | January 2022 |
|
396 |
| | Planetary boundaries: Guiding human development on a changing planet | https://www.science.org/doi/10.1126/science.1259855 | 11 pages | February 2015 |
|
397 |
| UNFCCC | State of the Oceans report | https://unfccc.int/documents/568128 | 75 pages | August 2022 |
|