mohAhmad commited on
Commit
5bbfcb8
Β·
verified Β·
1 Parent(s): 35836b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- # πŸ”₯ Call your Naive Bayes function here
43
- # your_naive_bayes_function()
44
 
45
  if random_forest_clicked:
46
  st.header("🟠 Random Forest Classifier")
47
  st.write("You selected Random Forest. Running prediction...")
48
- # πŸ”₯ Call your Random Forest function here
49
- # your_random_forest_function()
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
- # πŸ”₯ Call your comparison function here
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("---")