Spaces:
Running
Running
change plot title
Browse files
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
|
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"
|