Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,14 @@ if page == "Clustering Analysis":
|
|
59 |
# selected_clusters = st.selectbox("Choose a number of clusters", numclusters)
|
60 |
selected_clusters = st.slider("Choose a number of clusters", min_value=2, max_value=10, value=4)
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
# Read and display the CSV file
|
64 |
if uploaded_file is not None:
|
|
|
59 |
# selected_clusters = st.selectbox("Choose a number of clusters", numclusters)
|
60 |
selected_clusters = st.slider("Choose a number of clusters", min_value=2, max_value=10, value=4)
|
61 |
|
62 |
+
directory = "./"
|
63 |
+
all_files = os.listdir(directory)
|
64 |
+
# Filter files to only include CSV files
|
65 |
+
csv_files = [file for file in all_files if file.endswith(".csv")]
|
66 |
+
# Display the list of CSV files
|
67 |
+
st.write("CSV files in the directory:")
|
68 |
+
for file in csv_files:
|
69 |
+
st.write(file)
|
70 |
|
71 |
# Read and display the CSV file
|
72 |
if uploaded_file is not None:
|