Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -249,7 +249,7 @@ else:
|
|
| 249 |
# Allow selecting an example
|
| 250 |
for idx, sem in enumerate(semesters):
|
| 251 |
example_data = sample_cntt_example_simple if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin" else sample_kinhte_example_simple if sample_option == "Dùng ví dụ mẫu ngành Kinh tế" else None
|
| 252 |
-
default_values = example_data["semester_data"][idx*
|
| 253 |
data += input_important_features(sem, default_values)
|
| 254 |
final_features = np.array(data).reshape(1, -1)
|
| 255 |
|
|
|
|
| 249 |
# Allow selecting an example
|
| 250 |
for idx, sem in enumerate(semesters):
|
| 251 |
example_data = sample_cntt_example_simple if sample_option == "Dùng ví dụ mẫu ngành Công nghệ thông tin" else sample_kinhte_example_simple if sample_option == "Dùng ví dụ mẫu ngành Kinh tế" else None
|
| 252 |
+
default_values = example_data["semester_data"][idx*3:(idx+1)*3] if example_data else None # Fix this line to slice 3 values per semester (Số tín chỉ đạt, Số tín chỉ nợ, GPA)
|
| 253 |
data += input_important_features(sem, default_values)
|
| 254 |
final_features = np.array(data).reshape(1, -1)
|
| 255 |
|