Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,9 @@ def get_course_recommendations(stanine, gwa, strand, hobbies):
|
|
| 31 |
if gwa < 75 or gwa > 100:
|
| 32 |
return "GWA must be between 75-100", "", "", "", "", ""
|
| 33 |
|
|
|
|
|
|
|
|
|
|
| 34 |
if strand not in ["STEM", "ABM", "HUMSS", "GAS", "TVL"]:
|
| 35 |
return "Strand must be one of: STEM, ABM, HUMSS, GAS, TVL", "", "", "", "", ""
|
| 36 |
|
|
|
|
| 31 |
if gwa < 75 or gwa > 100:
|
| 32 |
return "GWA must be between 75-100", "", "", "", "", ""
|
| 33 |
|
| 34 |
+
# Normalize strand to uppercase for case-insensitive matching
|
| 35 |
+
strand = strand.upper()
|
| 36 |
+
|
| 37 |
if strand not in ["STEM", "ABM", "HUMSS", "GAS", "TVL"]:
|
| 38 |
return "Strand must be one of: STEM, ABM, HUMSS, GAS, TVL", "", "", "", "", ""
|
| 39 |
|