arthurpendragon commited on
Commit
0833c27
·
verified ·
1 Parent(s): 71138d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -33
app.py CHANGED
@@ -69,36 +69,3 @@ if uploaded_file is not None:
69
  st.write(prediction)
70
  st.pyplot(plot)
71
 
72
- # Sample images
73
- st.markdown("### Sample Images")
74
- if st.button('Normal Sample'):
75
- image = Image.open('normal_Sample.jpg')
76
- st.image(image, caption='Normal Sample Image', use_column_width=True)
77
- st.write("Classifying...")
78
- prediction, plot = predict_gastrointestinal(image)
79
- st.write(prediction)
80
- st.pyplot(plot)
81
-
82
- if st.button('Ulcerative Colitis Sample'):
83
- image = Image.open('ulcerative_colitis_sample.jpg')
84
- st.image(image, caption='Ulcerative Colitis Sample Image', use_column_width=True)
85
- st.write("Classifying...")
86
- prediction, plot = predict_gastrointestinal(image)
87
- st.write(prediction)
88
- st.pyplot(plot)
89
-
90
- if st.button('Polyp Sample'):
91
- image = Image.open('polyp_sample.jpg')
92
- st.image(image, caption='Polyp Sample Image', use_column_width=True)
93
- st.write("Classifying...")
94
- prediction, plot = predict_gastrointestinal(image)
95
- st.write(prediction)
96
- st.pyplot(plot)
97
-
98
- if st.button('Esophagitis Sample'):
99
- image = Image.open('esophagitis_sample.jpg')
100
- st.image(image, caption='Esophagitis Sample Image', use_column_width=True)
101
- st.write("Classifying...")
102
- prediction, plot = predict_gastrointestinal(image)
103
- st.write(prediction)
104
- st.pyplot(plot)
 
69
  st.write(prediction)
70
  st.pyplot(plot)
71