Spaces:
Sleeping
Sleeping
liesdillen
commited on
Commit
•
6179bed
1
Parent(s):
7422403
Update app.py
Browse files
app.py
CHANGED
@@ -47,6 +47,9 @@ def process_csv(file):
|
|
47 |
# Load the data
|
48 |
acc_data = np.array(acc_data)[:, 2:].astype(float) # Convert strings to floats
|
49 |
predicted_labels = load_data('003_1_R.txt')
|
|
|
|
|
|
|
50 |
|
51 |
# Append the new columns
|
52 |
complete_array = np.hstack((acc_data, predicted_labels))
|
|
|
47 |
# Load the data
|
48 |
acc_data = np.array(acc_data)[:, 2:].astype(float) # Convert strings to floats
|
49 |
predicted_labels = load_data('003_1_R.txt')
|
50 |
+
|
51 |
+
# Ensure acc_data has the same length as predicted_labels
|
52 |
+
acc_data_shortened = acc_data[:len(predicted_labels)]
|
53 |
|
54 |
# Append the new columns
|
55 |
complete_array = np.hstack((acc_data, predicted_labels))
|