redirect to the correct page
Browse files
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)
|