Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -251,7 +251,7 @@ else:
|
|
| 251 |
# Allow selecting an example
|
| 252 |
for idx, sem in enumerate(semesters):
|
| 253 |
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
|
| 254 |
-
default_values = example_data["semester_data"][idx*
|
| 255 |
data += input_important_features(sem, default_values)
|
| 256 |
final_features = np.array(data).reshape(1, -1)
|
| 257 |
|
|
|
|
| 251 |
# Allow selecting an example
|
| 252 |
for idx, sem in enumerate(semesters):
|
| 253 |
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
|
| 254 |
+
default_values = example_data["semester_data"][idx*3:(idx+1)*3] if example_data else None # For simple model, slice 3 values per semester (Số tín chỉ đạt, Số tín chỉ nợ, GPA)
|
| 255 |
data += input_important_features(sem, default_values)
|
| 256 |
final_features = np.array(data).reshape(1, -1)
|
| 257 |
|