Kaludi commited on
Commit
0409cf5
1 Parent(s): 3beaa17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -47,7 +47,10 @@ def main():
47
  "examples/example_6.jpg",
48
  "examples/example_7.jpg"]
49
  show_images = False
50
- if st.button("Show/Hide Examples"):
 
 
 
51
  show_images = not show_images
52
  if show_images:
53
  st.header("Example Images")
 
47
  "examples/example_6.jpg",
48
  "examples/example_7.jpg"]
49
  show_images = False
50
+
51
+ if st.checkbox("Show/Hide Examples"):
52
+
53
+ # display the text if the checkbox returns True value
54
  show_images = not show_images
55
  if show_images:
56
  st.header("Example Images")