Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def delete_file():
|
|
35 |
|
36 |
# File View
|
37 |
@st.dialog("Files used by AI")
|
38 |
-
def
|
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(
|