elsoori commited on
Commit
62b8c0c
1 Parent(s): 4784d5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -44,11 +44,7 @@ if uploaded_file:
44
  results_df = pd.DataFrame(
45
  {'Cell Type': categories, 'Probability': probs.tolist()}
46
  )
47
-
48
- # Display the probabilities as a bar chart
49
- st.bar_chart(results_df.set_index('Cell Type'))
50
-
51
- # Highlight the most likely class
52
  most_likely_class = categories[idx]
53
  st.success(f"Predicted Class: {most_likely_class}")
54
 
@@ -56,5 +52,9 @@ if uploaded_file:
56
  st.write("Detailed Classification Results:")
57
  st.table(results_df)
58
 
 
 
 
 
59
  else:
60
  st.warning("Upload an image to start classification.")
 
44
  results_df = pd.DataFrame(
45
  {'Cell Type': categories, 'Probability': probs.tolist()}
46
  )
47
+ # Highlight the most likely class
 
 
 
 
48
  most_likely_class = categories[idx]
49
  st.success(f"Predicted Class: {most_likely_class}")
50
 
 
52
  st.write("Detailed Classification Results:")
53
  st.table(results_df)
54
 
55
+ # Display the probabilities as a bar chart
56
+ st.bar_chart(results_df.set_index('Cell Type'))
57
+
58
+
59
  else:
60
  st.warning("Upload an image to start classification.")