Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
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 >=
|
| 89 |
-
color = "#
|
| 90 |
-
elif score >=
|
| 91 |
-
color = "#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
else:
|
| 93 |
-
color = "#
|
| 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;">
|