Hemg commited on
Commit
b84f41f
·
verified ·
1 Parent(s): f8ecc89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -14
app.py CHANGED
@@ -29,32 +29,26 @@ def encode_categorical_columns(df):
29
  return df
30
 
31
  # Define the prediction function
32
- def predict_performance(Location, College_Fee, GPA, Year, Course_Interested, College,
33
- Faculty, Source, visited_college_for_inquiry_only, attended_event_name,
34
- attended_any_events, Presenter, visited_with_parents):
35
 
36
  # Debug print 1: Print all input values
37
  print("\nInput Values:")
38
  print(f"Location: {Location}")
39
- print(f"College_Fee: {College_Fee}")
40
  print(f"GPA: {GPA}")
41
  print(f"Year: {Year}")
42
- print(f"Course_Interested: {Course_Interested}")
43
  print(f"Faculty: {Faculty}")
44
  print(f"Source: {Source}")
45
- print(f"Visited for inquiry: {visited_college_for_inquiry_only}")
46
- print(f"Event name: {attended_event_name}")
47
- print(f"Attended events: {attended_any_events}")
48
  print(f"Presenter: {Presenter}")
49
  print(f"Visited with parents: {visited_with_parents}")
50
 
51
- input_data = [[Location, College_Fee, GPA, Year, Course_Interested, College,
52
- Faculty, Source, visited_college_for_inquiry_only, attended_event_name,
53
- attended_any_events, Presenter, visited_with_parents]]
54
 
55
- feature_names = ["Location", "College_Fee", "GPA", "Year", "Course_Interested", "College",
56
- "Faculty", "Source", "visited_college_for_inquiry_only", "attended_event_name",
57
- "attended_any_events", "Presenter", "visited_with_parents"]
58
 
59
  input_df = pd.DataFrame(input_data, columns=feature_names)
60
 
 
29
  return df
30
 
31
  # Define the prediction function
32
+ def predict_performance(Location,Course,College,Faculty,Source,Event,Presenter,Visited Parent,Visited College for Inquiry,Attended Any Event,College Fee,GPA,Year):
 
 
33
 
34
  # Debug print 1: Print all input values
35
  print("\nInput Values:")
36
  print(f"Location: {Location}")
37
+ print(f"College Fee: {College_Fee}")
38
  print(f"GPA: {GPA}")
39
  print(f"Year: {Year}")
40
+ print(f"Course: {Course_Interested}")
41
  print(f"Faculty: {Faculty}")
42
  print(f"Source: {Source}")
43
+ print(f"Visited College for Inquiry: {visited_college_for_inquiry_only}")
44
+ print(f"Event : {attended_event_name}")
45
+ print(f"Attended Any vents: {ttended any_events}")
46
  print(f"Presenter: {Presenter}")
47
  print(f"Visited with parents: {visited_with_parents}")
48
 
49
+ input_data = [Location,Course,College,Faculty,Source,Event,Presenter,Visited Parent,Visited College for Inquiry,Attended Any Event,College Fee,GPA,Year
 
 
50
 
51
+ feature_names = ["Location", "Course", "College", "Faculty", "Source", "Event", "Presenter", "Visited Parent", "Visited College for Inquiry", "Attended Any Event", "College Fee", "GPA", "Year"]
 
 
52
 
53
  input_df = pd.DataFrame(input_data, columns=feature_names)
54