Dannyar608 commited on
Commit
d95bb45
·
verified ·
1 Parent(s): ffbc55b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -94,14 +94,7 @@ def parse_transcript(file):
94
  else:
95
  output_text += "No GPA information found\n"
96
 
97
- output_text += "\nCourses by Grade Level:\n"
98
- for level, courses in courses_by_grade.items():
99
- output_text += f"\nGrade {level}:\n"
100
- for course in courses:
101
- output_text += f"- {course['course']}"
102
- if 'grade' in course:
103
- output_text += f" (Grade: {course['grade']})"
104
- output_text += "\n"
105
 
106
  return output_text, {
107
  "gpa": gpa_data,
@@ -139,18 +132,6 @@ def parse_transcript(file):
139
  "courses": courses
140
  }
141
 
142
- # ========== LEARNING STYLE QUIZ FUNCTION ==========
143
-
144
- def learning_style_quiz(*answers):
145
- visual = answers.count("I remember something better when I see it written down.")
146
- auditory = answers.count("I remember best by listening to a lecture or a recording.")
147
- reading = answers.count("I remember best by reading information on my own.")
148
-
149
- styles = {"Visual": visual, "Auditory": auditory, "Reading/Writing": reading}
150
- top_styles = [k for k, v in styles.items() if v == max(styles.values())]
151
- result = ", ".join(top_styles)
152
- return result
153
-
154
  # ========== SAVE STUDENT PROFILE FUNCTION ==========
155
 
156
  def save_profile(name, age, interests, transcript, learning_style, favorites, blog):
 
94
  else:
95
  output_text += "No GPA information found\n"
96
 
97
+ output_text += "\n(Courses not shown here)"
 
 
 
 
 
 
 
98
 
99
  return output_text, {
100
  "gpa": gpa_data,
 
132
  "courses": courses
133
  }
134
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  # ========== SAVE STUDENT PROFILE FUNCTION ==========
136
 
137
  def save_profile(name, age, interests, transcript, learning_style, favorites, blog):