TheoLvs commited on
Commit
8f56eb5
β€’
1 Parent(s): 90b7435

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -152,12 +152,12 @@ def log_on_azure(file, logs, share_client):
152
  file_client.upload_file(str(logs))
153
 
154
 
155
- with gr.Blocks(title="🌍 ClimateGPT", css="style.css") as demo:
156
 
157
  user_id_state = gr.State([user_id])
158
 
159
  # Gradio
160
- gr.Markdown("<h1><center>ClimateGPT 🌍</center></h1>")
161
  gr.Markdown(
162
  "<h4><center>Ask climate-related questions to the IPCC reports</center></h4>"
163
  )
@@ -166,13 +166,13 @@ with gr.Blocks(title="🌍 ClimateGPT", css="style.css") as demo:
166
  gr.Markdown(
167
  """
168
  <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>
169
- <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> and are often laden with technical jargon. To bridge this gap and make climate science more accessible, we introduce <b>ClimateGPT as a tool to distill expert-level knowledge into easily digestible insights about climate science.</b></p>
170
  <div class="tip-box">
171
  <div class="tip-box-title">
172
  <span class="light-bulb" role="img" aria-label="Light Bulb">πŸ’‘</span>
173
  How does ClimateGPT work?
174
  </div>
175
- ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports. By leveraging state-of-the-art question-answering algorithms, <i>ClimateGPT is able to sift through the extensive collection of climate scientific reports and identify relevant passages in response to user inquiries</i>. Furthermore, the integration of the ChatGPT API allows ClimateGPT to present complex data in a user-friendly manner, summarizing key points and facilitating communication of climate science to a wider audience. This innovative chatbot effectively puts a climate expert in your pocket, empowering you to engage with crucial environmental issues in a more informed and meaningful way.
176
  </div>
177
 
178
  """
@@ -270,17 +270,17 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
270
  outputs=[chatbot, state, sources_textbox],
271
  )
272
 
273
- gr.Markdown("## How to use ClimateGPT")
274
  with gr.Row():
275
  with gr.Column(scale=1):
276
  gr.Markdown(
277
  """
278
  ### πŸ’ͺ Getting started
279
- - In the chatbot section, simply type your climate-related question, and ClimateGPT will provide an answer with references to relevant IPCC reports.
280
- - ClimateGPT retrieves specific passages from the IPCC reports to help answer your question accurately.
281
  - Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
282
  - Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
283
- - ClimateGPT integrates multiple sources (IPCC, IPBES, IEA, Limits to Growth, … ) to cover various aspects of environmental science, such as climate change, biodiversity, energy, economy, and pollution. See all sources used below.
284
  """
285
  )
286
  with gr.Column(scale=1):
@@ -292,7 +292,7 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
292
  <ul>
293
  <li>Currently available in English only.</li>
294
  <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>
295
- <li>ClimateGPT 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>
296
  </div>
297
  """
298
  )
@@ -301,7 +301,7 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
301
  gr.Markdown(
302
  """
303
  ### Beta test
304
- - ClimateGPT welcomes community contributions. To participate, head over to the Community Tab and create a "New Discussion" to ask questions and share your insights.
305
  - Provide feedback through our feedback form, letting us know which insights you found accurate, useful, or not. Your input will help us improve the platform.
306
  - Only a few sources (see below) are integrated (all IPCC, IPBES, IEA recent reports), if you are a climate science researcher and net to sift through another report, please let us know.
307
  """
 
152
  file_client.upload_file(str(logs))
153
 
154
 
155
+ with gr.Blocks(title="🌍 Climate Q&A", css="style.css") as demo:
156
 
157
  user_id_state = gr.State([user_id])
158
 
159
  # Gradio
160
+ gr.Markdown("<h1><center>Climate Q&A 🌍</center></h1>")
161
  gr.Markdown(
162
  "<h4><center>Ask climate-related questions to the IPCC reports</center></h4>"
163
  )
 
166
  gr.Markdown(
167
  """
168
  <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>
169
+ <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> and are often laden with technical jargon. 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>
170
  <div class="tip-box">
171
  <div class="tip-box-title">
172
  <span class="light-bulb" role="img" aria-label="Light Bulb">πŸ’‘</span>
173
  How does ClimateGPT work?
174
  </div>
175
+ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports. By leveraging state-of-the-art question-answering algorithms, <i>ClimateGPT is able to sift through the extensive collection of climate scientific reports and identify relevant passages in response to user inquiries</i>. Furthermore, the integration of the ChatGPT API allows ClimateQ&A to present complex data in a user-friendly manner, summarizing key points and facilitating communication of climate science to a wider audience. This innovative chatbot effectively puts a climate expert in your pocket, empowering you to engage with crucial environmental issues in a more informed and meaningful way.
176
  </div>
177
 
178
  """
 
270
  outputs=[chatbot, state, sources_textbox],
271
  )
272
 
273
+ gr.Markdown("## How to use ClimateQ&A")
274
  with gr.Row():
275
  with gr.Column(scale=1):
276
  gr.Markdown(
277
  """
278
  ### πŸ’ͺ Getting started
279
+ - In the chatbot section, simply type your climate-related question, and ClimateQ&A will provide an answer with references to relevant IPCC reports.
280
+ - ClimateQ&A retrieves specific passages from the IPCC reports to help answer your question accurately.
281
  - Source information, including page numbers and passages, is displayed on the right side of the screen for easy verification.
282
  - Feel free to ask follow-up questions within the chatbot for a more in-depth understanding.
283
+ - ClimateQ&A integrates multiple sources (IPCC, IPBES, IEA, Limits to Growth, … ) to cover various aspects of environmental science, such as climate change, biodiversity, energy, economy, and pollution. See all sources used below.
284
  """
285
  )
286
  with gr.Column(scale=1):
 
292
  <ul>
293
  <li>Currently available in English only.</li>
294
  <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>
295
+ <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>
296
  </div>
297
  """
298
  )
 
301
  gr.Markdown(
302
  """
303
  ### Beta test
304
+ - 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.
305
  - Provide feedback through our feedback form, letting us know which insights you found accurate, useful, or not. Your input will help us improve the platform.
306
  - Only a few sources (see below) are integrated (all IPCC, IPBES, IEA recent reports), if you are a climate science researcher and net to sift through another report, please let us know.
307
  """