w3robotics commited on
Commit
381fb97
·
verified ·
1 Parent(s): 1dc15ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def delete_file():
35
 
36
  # File View
37
  @st.dialog("Files used by AI")
38
- def delete_file():
39
  # List all files in directory and subdirectories
40
  files = []
41
  for root, dirs, file_names in os.walk(path):
@@ -113,7 +113,9 @@ with browse_column:
113
  }
114
  """,
115
  ):
116
- st.button("View", key='view')
 
 
117
 
118
  with recycle_column:
119
  with stylable_container(
 
35
 
36
  # File View
37
  @st.dialog("Files used by AI")
38
+ def view_file():
39
  # List all files in directory and subdirectories
40
  files = []
41
  for root, dirs, file_names in os.walk(path):
 
113
  }
114
  """,
115
  ):
116
+ if st.button("View", key='view'):
117
+ view_file()
118
+
119
 
120
  with recycle_column:
121
  with stylable_container(