TheoLvs commited on
Commit
ae04a40
β€’
1 Parent(s): 7934f4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -137,7 +137,6 @@ def answer_user(message,history):
137
 
138
 
139
  def answer_bot(message,history):
140
- print("YO",message,history)
141
  # history_langchain_format = []
142
  # for human, ai in history:
143
  # history_langchain_format.append(HumanMessage(content=human))
@@ -330,8 +329,8 @@ with gr.Blocks(title="🌍 Climate Q&A", css="style.css", theme=theme) as demo:
330
  # user_id_state = gr.State([user_id])
331
 
332
  # Gradio
333
- gr.Markdown("<h1><center>Climate Q&A 🌍</center></h1>")
334
- gr.Markdown("<h4><center>Ask climate-related questions to the IPCC and IPBES reports using AI</center></h4>")
335
 
336
  with gr.Tab("πŸ’¬ Chatbot"):
337
 
@@ -402,7 +401,7 @@ with gr.Blocks(title="🌍 Climate Q&A", css="style.css", theme=theme) as demo:
402
  # )
403
 
404
  gr.Markdown("### Sources")
405
- sources_textbox = gr.Markdown(show_label=False)
406
 
407
  # textbox.submit(predict_climateqa,[textbox,bot],[None,bot,sources_textbox])
408
 
 
137
 
138
 
139
  def answer_bot(message,history):
 
140
  # history_langchain_format = []
141
  # for human, ai in history:
142
  # history_langchain_format.append(HumanMessage(content=human))
 
329
  # user_id_state = gr.State([user_id])
330
 
331
  # Gradio
332
+ # gr.Markdown("<h1><center>Climate Q&A 🌍</center></h1>")
333
+ # gr.Markdown("<h4><center>Ask climate-related questions to the IPCC and IPBES reports using AI</center></h4>")
334
 
335
  with gr.Tab("πŸ’¬ Chatbot"):
336
 
 
401
  # )
402
 
403
  gr.Markdown("### Sources")
404
+ sources_textbox = gr.Markdown(show_label=False, elem_id="sources-textbox")
405
 
406
  # textbox.submit(predict_climateqa,[textbox,bot],[None,bot,sources_textbox])
407