Spaces:
Sleeping
Sleeping
Delete static
Browse files- static/dummy.txt +0 -1
- static/final_data_zone.csv +0 -3
- static/rf_pipeline.pkl +0 -3
- static/script.js +0 -35
- static/zone_course_and_colleges.csv +0 -0
static/dummy.txt
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
abcd
|
|
|
|
static/final_data_zone.csv
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:2872a1376181a65619aea9f232bb62689c99f1a6d8a8cfc5c5ddbc6b2746f84c
|
3 |
-
size 23613400
|
|
|
|
|
|
|
|
static/rf_pipeline.pkl
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5de4ebdaf5d5d3f6f1866a1820b1572705e05d4353f92f152b2d20ca3fb6404e
|
3 |
-
size 957798651
|
|
|
|
|
|
|
|
static/script.js
DELETED
@@ -1,35 +0,0 @@
|
|
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
DELETED
The diff for this file is too large to render.
See raw diff
|
|