BlakeL commited on
Commit
f098a05
·
verified ·
1 Parent(s): be25baf

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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