mjavadmt commited on
Commit
adb5ea8
·
1 Parent(s): 3a2ee01

change plot title

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def plot_bar_chart(results):
30
  plt.barh(labels, confidences, color=['green' if results[label]["Detected"] else 'red' for label in labels])
31
  plt.xlabel("Confidence (%)")
32
  plt.xlim(0, 100)
33
- plt.title(f"Energy Smells Detection Probabilities - Threshold: {BEST_THRESHOLD}")
34
  plt.gca().invert_yaxis() # Invert y-axis for better readability
35
  plt.tight_layout()
36
  img_path = "confidence_chart.png"
 
30
  plt.barh(labels, confidences, color=['green' if results[label]["Detected"] else 'red' for label in labels])
31
  plt.xlabel("Confidence (%)")
32
  plt.xlim(0, 100)
33
+ plt.title(f"Energy Smells Probabilities - Threshold: {BEST_THRESHOLD}")
34
  plt.gca().invert_yaxis() # Invert y-axis for better readability
35
  plt.tight_layout()
36
  img_path = "confidence_chart.png"