Spaces:
Sleeping
Sleeping
error_handling
Browse files
app.py
CHANGED
@@ -64,9 +64,6 @@ if not check_password():
|
|
64 |
|
65 |
def main():
|
66 |
|
67 |
-
if not os.path.exists("Messungen"):
|
68 |
-
os.makedirs("Messungen")
|
69 |
-
|
70 |
sprint_data_folder = "Messungen"
|
71 |
|
72 |
sprint_csv_files = get_csv_files(sprint_data_folder)
|
@@ -104,13 +101,16 @@ def main():
|
|
104 |
with col2:
|
105 |
st.markdown("<h2 style='text-align: center; color: black; font-family:Arial;font-size:2rem;'>Auswertung</h2>", unsafe_allow_html=True)
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
|
|
|
|
114 |
|
115 |
|
116 |
|
|
|
64 |
|
65 |
def main():
|
66 |
|
|
|
|
|
|
|
67 |
sprint_data_folder = "Messungen"
|
68 |
|
69 |
sprint_csv_files = get_csv_files(sprint_data_folder)
|
|
|
101 |
with col2:
|
102 |
st.markdown("<h2 style='text-align: center; color: black; font-family:Arial;font-size:2rem;'>Auswertung</h2>", unsafe_allow_html=True)
|
103 |
|
104 |
+
try:
|
105 |
+
sliced_data = slice_data(selected_file)
|
106 |
+
recurrence_plot = create_recurrence_plot(sliced_data)
|
107 |
+
classification_result = classification(recurrence_plot)
|
108 |
+
fig_feed, fig_depth, fig_wear = check_classification(classification_result)
|
109 |
+
st.pyplot(fig_feed)
|
110 |
+
st.pyplot(fig_depth)
|
111 |
+
st.pyplot(fig_wear)
|
112 |
+
except:
|
113 |
+
pass
|
114 |
|
115 |
|
116 |
|