hecl commited on
Commit
53d2dc8
1 Parent(s): d6a239d

- [MINOR] [SOURCE] [UPDATE] 1. update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -74,6 +74,9 @@ def create_bar_chart(scores, comparisons):
74
  labels = ['Semantic', 'Aesthetic', 'Technical', 'Overall']
75
  base_colors = ['#d62728', '#ff7f0e', '#1f77b4', '#bcbd22']
76
 
 
 
 
77
  fig, ax = plt.subplots(figsize=(8, 6))
78
 
79
  # Create vertical bars
 
74
  labels = ['Semantic', 'Aesthetic', 'Technical', 'Overall']
75
  base_colors = ['#d62728', '#ff7f0e', '#1f77b4', '#bcbd22']
76
 
77
+ # Ensure comparisons are float arrays
78
+ comparisons = [np.array(comparison, dtype=float) for comparison in comparisons]
79
+
80
  fig, ax = plt.subplots(figsize=(8, 6))
81
 
82
  # Create vertical bars