Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -762,7 +762,7 @@ elif app_mode == "Model Training":
|
|
762 |
|
763 |
#Heatmap
|
764 |
fig_conf, ax_conf = plt.subplots()
|
765 |
-
sns.heatmap(conf_matrix, annot=True, fmt='d', cmap='Blues'
|
766 |
ax_conf.set_xlabel('Predicted Labels')
|
767 |
ax_conf.set_ylabel('True Labels')
|
768 |
ax_conf.set_title('Confusion Matrix')
|
@@ -850,6 +850,7 @@ elif app_mode == "Model Training":
|
|
850 |
st.write(f"Accuracy: {accuracy:.4f}")
|
851 |
except Exception as e: #local error
|
852 |
st.error(f"An error occurred during model evaluation: {e}")
|
|
|
853 |
elif app_mode == "Predictions":
|
854 |
st.title("🔮 Make Predictions")
|
855 |
|
|
|
762 |
|
763 |
#Heatmap
|
764 |
fig_conf, ax_conf = plt.subplots()
|
765 |
+
sns.heatmap(conf_matrix, ax=ax_conf, annot=True, fmt='d', cmap='Blues')
|
766 |
ax_conf.set_xlabel('Predicted Labels')
|
767 |
ax_conf.set_ylabel('True Labels')
|
768 |
ax_conf.set_title('Confusion Matrix')
|
|
|
850 |
st.write(f"Accuracy: {accuracy:.4f}")
|
851 |
except Exception as e: #local error
|
852 |
st.error(f"An error occurred during model evaluation: {e}")
|
853 |
+
|
854 |
elif app_mode == "Predictions":
|
855 |
st.title("🔮 Make Predictions")
|
856 |
|