Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,19 @@ def delete_file():
|
|
32 |
# Delete the file
|
33 |
os.remove(os.path.join(path,file_to_delete))
|
34 |
st.rerun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
|
|
|
32 |
# Delete the file
|
33 |
os.remove(os.path.join(path,file_to_delete))
|
34 |
st.rerun()
|
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):
|
42 |
+
for file_name in file_names:
|
43 |
+
files.append(file_name)
|
44 |
+
|
45 |
+
st.write(files)
|
46 |
+
if st.button("Close"):
|
47 |
+
st.rerun()
|
48 |
|
49 |
|
50 |
|