Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -241,8 +241,9 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 241 |
section
|
| 242 |
)
|
| 243 |
|
| 244 |
-
btn_chat.click(switch_view, inputs=[], outputs=[Zeno_Chat, Zeno_Investments, active_section]
|
| 245 |
-
btn_mock.click(switch_view, inputs=[], outputs=[Zeno_Chat, Zeno_Investments, active_section]
|
|
|
|
| 246 |
|
| 247 |
def toggle_sidebar(is_open):
|
| 248 |
new_state = not is_open
|
|
|
|
| 241 |
section
|
| 242 |
)
|
| 243 |
|
| 244 |
+
btn_chat.click(fn=lambda: switch_view("chat"), inputs=[], outputs=[Zeno_Chat, Zeno_Investments, active_section])
|
| 245 |
+
btn_mock.click(fn=lambda: switch_view("investments"), inputs=[], outputs=[Zeno_Chat, Zeno_Investments, active_section])
|
| 246 |
+
|
| 247 |
|
| 248 |
def toggle_sidebar(is_open):
|
| 249 |
new_state = not is_open
|