Hikmahhh commited on
Commit
7321c0a
·
verified ·
1 Parent(s): 9331572

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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], _js="() => 'chat'")
245
- btn_mock.click(switch_view, inputs=[], outputs=[Zeno_Chat, Zeno_Investments, active_section], _js="() => 'investments'")
 
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