LAP-DEV commited on
Commit
8ab489d
·
verified ·
1 Parent(s): b5d16b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -407,7 +407,7 @@ class App:
407
  def toggle_sidebar(show_sidebar):
408
  new_state = not show_sidebar # Toggle the visibility
409
  button_text = "Hide results" if new_state else "Show results"
410
- return new_state, button_text
411
 
412
  # Create the parser for command-line arguments
413
  parser = argparse.ArgumentParser()
 
407
  def toggle_sidebar(show_sidebar):
408
  new_state = not show_sidebar # Toggle the visibility
409
  button_text = "Hide results" if new_state else "Show results"
410
+ return gr.update(visible = state), button_text
411
 
412
  # Create the parser for command-line arguments
413
  parser = argparse.ArgumentParser()