timeki commited on
Commit
0b431ab
1 Parent(s): f47389e

redirect to the correct page

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -590,7 +590,7 @@ with gr.Blocks(title="Climate Q&A", css_paths=os.getcwd()+ "/style.css", theme=t
590
 
591
  def start_chat(query,history,search_only):
592
  history = history + [ChatMessage(role="user", content=query)]
593
- if search_only:
594
  return (gr.update(interactive = False),gr.update(selected=1),history)
595
  else:
596
  return (gr.update(interactive = False),gr.update(selected=2),history)
 
590
 
591
  def start_chat(query,history,search_only):
592
  history = history + [ChatMessage(role="user", content=query)]
593
+ if not search_only:
594
  return (gr.update(interactive = False),gr.update(selected=1),history)
595
  else:
596
  return (gr.update(interactive = False),gr.update(selected=2),history)