Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -213,7 +213,7 @@ class SocialMediaAnalyzer:
|
|
| 213 |
ax.fill_between(high_angle, 0, 1, alpha=0.3, color='red', label='High (7-10)')
|
| 214 |
|
| 215 |
# Add the needle (rotate by -90° to make 0° at left instead of top)
|
| 216 |
-
needle_angle = (angle)
|
| 217 |
ax.plot([needle_angle, needle_angle], [0, 1.2], 'k-', linewidth=4, label=f'Your Score: {predicted_score:.1f}')
|
| 218 |
|
| 219 |
# Add a circle at the needle tip
|
|
|
|
| 213 |
ax.fill_between(high_angle, 0, 1, alpha=0.3, color='red', label='High (7-10)')
|
| 214 |
|
| 215 |
# Add the needle (rotate by -90° to make 0° at left instead of top)
|
| 216 |
+
needle_angle = math.abs(angle)
|
| 217 |
ax.plot([needle_angle, needle_angle], [0, 1.2], 'k-', linewidth=4, label=f'Your Score: {predicted_score:.1f}')
|
| 218 |
|
| 219 |
# Add a circle at the needle tip
|