Fawazzx commited on
Commit
e733852
·
1 Parent(s): 1e10b23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import cv2
8
  from PIL import Image
9
 
10
 
 
11
  st.title('Deep Learning Classifier App')
12
  task = st.selectbox('Select Task', ['Choose one','Sentiment Classification', 'Tumor Detection'])
13
 
@@ -16,7 +17,7 @@ if task=='Tumor Detection':
16
  # CNN
17
  cnn_model = load_model("cnn_model.h5")
18
 
19
- img = st.file_uploader('Upload image', type=['jpeg', 'jpg', 'png'])
20
 
21
  def cnn_make_prediction(img,model):
22
  img=Image.open(img)
 
8
  from PIL import Image
9
 
10
 
11
+
12
  st.title('Deep Learning Classifier App')
13
  task = st.selectbox('Select Task', ['Choose one','Sentiment Classification', 'Tumor Detection'])
14
 
 
17
  # CNN
18
  cnn_model = load_model("cnn_model.h5")
19
 
20
+ img = st.file_uploader('Upload image:', type=['jpeg', 'jpg', 'png'])
21
 
22
  def cnn_make_prediction(img,model):
23
  img=Image.open(img)