Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- static/final_data_zone.csv +3 -0
- static/rf_pipeline.pkl +3 -0
- static/script.js +35 -0
- static/zone_course_and_colleges.csv +0 -0
static/final_data_zone.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79b90583b1ff0da1753c47e9194f1e09910b2a5b0aa6de3a8e750497a9fdf624
|
| 3 |
+
size 23472041
|
static/rf_pipeline.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f122706a2001f4ad6988229fa8e5693584cd9267bc3c6fa9e91621f6b0c0a411
|
| 3 |
+
size 1332144255
|
static/script.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$(document).ready(function() {
|
| 2 |
+
// Function to load courses based on the selected zone
|
| 3 |
+
function loadCourses(zone) {
|
| 4 |
+
$.ajax({
|
| 5 |
+
url: '/get_courses', // Make sure this route exists in Flask
|
| 6 |
+
method: 'POST',
|
| 7 |
+
contentType: 'application/json',
|
| 8 |
+
data: JSON.stringify({ 'zone': zone }),
|
| 9 |
+
success: function(response) {
|
| 10 |
+
// Clear the existing options in the course dropdown
|
| 11 |
+
$('#course').empty();
|
| 12 |
+
|
| 13 |
+
// Populate the course dropdown with the new options
|
| 14 |
+
response.forEach(function(course) {
|
| 15 |
+
$('#course').append(new Option(course, course));
|
| 16 |
+
});
|
| 17 |
+
},
|
| 18 |
+
error: function(error) {
|
| 19 |
+
console.log('Error:', error);
|
| 20 |
+
}
|
| 21 |
+
});
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
// On page load, fetch courses for the pre-selected zone
|
| 25 |
+
var defaultZone = $('#zone').val(); // Get the default selected zone
|
| 26 |
+
loadCourses(defaultZone); // Load courses for the default zone
|
| 27 |
+
|
| 28 |
+
// When the zone dropdown changes, fetch the filtered courses
|
| 29 |
+
$('#zone').change(function() {
|
| 30 |
+
var selectedZone = $(this).val();
|
| 31 |
+
loadCourses(selectedZone); // Load courses for the newly selected zone
|
| 32 |
+
});
|
| 33 |
+
});
|
| 34 |
+
|
| 35 |
+
|
static/zone_course_and_colleges.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|