Update app.py
Browse files
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
|
| 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()
|