Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,30 +35,30 @@ comparison_clicked = st.sidebar.button("π Compare All Models")
|
|
| 35 |
# --- Main Area Display based on Button Click ---
|
| 36 |
if knn_clicked:
|
| 37 |
st.header("π΅ K-Nearest Neighbors (KNN)")
|
|
|
|
|
|
|
| 38 |
|
| 39 |
if naive_bayes_clicked:
|
| 40 |
st.header("π’ Naive Bayes Classifier")
|
| 41 |
st.write("You selected Naive Bayes. Running prediction...")
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
if random_forest_clicked:
|
| 46 |
st.header("π Random Forest Classifier")
|
| 47 |
st.write("You selected Random Forest. Running prediction...")
|
| 48 |
-
|
| 49 |
-
|
| 50 |
|
| 51 |
if kmeans_clicked:
|
| 52 |
st.header("π΄ K-Means Clustering")
|
| 53 |
st.write("You selected K-Means Clustering. Running visualization...")
|
| 54 |
-
|
| 55 |
-
st.image("Clustering.PNG", caption="KNN Diagram", use_container_width=True)
|
| 56 |
|
| 57 |
if comparison_clicked:
|
| 58 |
st.header("π Model Performance Comparison")
|
| 59 |
st.write("Comparing performance of all models...")
|
| 60 |
-
|
| 61 |
-
# your_performance_comparison_function()
|
| 62 |
|
| 63 |
# --- Footer ---
|
| 64 |
st.markdown("---")
|
|
|
|
| 35 |
# --- Main Area Display based on Button Click ---
|
| 36 |
if knn_clicked:
|
| 37 |
st.header("π΅ K-Nearest Neighbors (KNN)")
|
| 38 |
+
st.image("KNN.PNG", caption="KNN Diagram", use_container_width=True)
|
| 39 |
+
|
| 40 |
|
| 41 |
if naive_bayes_clicked:
|
| 42 |
st.header("π’ Naive Bayes Classifier")
|
| 43 |
st.write("You selected Naive Bayes. Running prediction...")
|
| 44 |
+
st.image("Naive Baies.PNG", caption="ConfusionMatric for NaiveBaise", use_container_width=True)
|
| 45 |
+
|
| 46 |
|
| 47 |
if random_forest_clicked:
|
| 48 |
st.header("π Random Forest Classifier")
|
| 49 |
st.write("You selected Random Forest. Running prediction...")
|
| 50 |
+
st.image("Randome Forest.PNG", caption="ConfusionMatric for Random Forest", use_container_width=True)
|
| 51 |
+
|
| 52 |
|
| 53 |
if kmeans_clicked:
|
| 54 |
st.header("π΄ K-Means Clustering")
|
| 55 |
st.write("You selected K-Means Clustering. Running visualization...")
|
| 56 |
+
st.image("Clustering.PNG", caption="ConfusionMatric for K-Means", use_container_width=True)
|
|
|
|
| 57 |
|
| 58 |
if comparison_clicked:
|
| 59 |
st.header("π Model Performance Comparison")
|
| 60 |
st.write("Comparing performance of all models...")
|
| 61 |
+
|
|
|
|
| 62 |
|
| 63 |
# --- Footer ---
|
| 64 |
st.markdown("---")
|