Davichick commited on
Commit
a155ec5
·
verified ·
1 Parent(s): bf1f1b6

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -85,12 +85,18 @@ def create_circular_progress(grade_text):
85
  percentage = (score / 10) * 100
86
  dasharray = f"{percentage} {100 - percentage}"
87
 
88
- if score >= 8:
89
- color = "#d4af37" # Gold for good score
90
- elif score >= 5:
91
- color = "#facc15"
 
 
 
 
 
 
92
  else:
93
- color = "#f87171"
94
 
95
  svg_html = f"""
96
  <div style="display: flex; justify-content: center; align-items: center; padding: 20px; flex-direction: column;">
 
85
  percentage = (score / 10) * 100
86
  dasharray = f"{percentage} {100 - percentage}"
87
 
88
+ if score >= 9:
89
+ color = "#22c55e" # Bright green
90
+ elif score >= 8:
91
+ color = "#16a34a" # Darkish green
92
+ elif score >= 6:
93
+ color = "#fb923c" # Light orange
94
+ elif score >= 4:
95
+ color = "#ea580c" # Orange
96
+ elif score >= 2:
97
+ color = "#ef4444" # Red
98
  else:
99
+ color = "#b91c1c" # Dark red
100
 
101
  svg_html = f"""
102
  <div style="display: flex; justify-content: center; align-items: center; padding: 20px; flex-direction: column;">