kumar989 commited on
Commit
485f3c1
1 Parent(s): 6d78e3d

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +8 -8
model.py CHANGED
@@ -14,32 +14,32 @@ def classify(img):
14
 
15
  if a==0:
16
  st.write('________________________________________________')
17
- return "Provide the medical Imaging of the mentioned categories"
18
  # st.write('________________________________________________')
19
  if a==1:
20
  st.write('________________________________________________')
21
- c = bone_net(im)
22
  # st.write('________________________________________________')
23
  if a==2:
24
  st.write('________________________________________________')
25
- c = brain_net(im)
26
  # st.write('________________________________________________')
27
  if a==3:
28
  st.write('________________________________________________')
29
- c = Eye_net(im)
30
  # st.write('________________________________________________')
31
  if a==4:
32
  st.write('________________________________________________')
33
- c = kidney_net(im)
34
  # st.write('________________________________________________')
35
  if a==5:
36
  st.write('________________________________________________')
37
- c = chest_net(im)
38
  # st.write('________________________________________________')
39
  if a==6:
40
  st.write('________________________________________________')
41
- c = skin_net(im)
42
- return c
43
 
44
 
45
 
 
14
 
15
  if a==0:
16
  st.write('________________________________________________')
17
+ return "Provide the medical Imaging of the mentioned categories",""
18
  # st.write('________________________________________________')
19
  if a==1:
20
  st.write('________________________________________________')
21
+ c,b = bone_net(im)
22
  # st.write('________________________________________________')
23
  if a==2:
24
  st.write('________________________________________________')
25
+ c,b = brain_net(im)
26
  # st.write('________________________________________________')
27
  if a==3:
28
  st.write('________________________________________________')
29
+ c,b = Eye_net(im)
30
  # st.write('________________________________________________')
31
  if a==4:
32
  st.write('________________________________________________')
33
+ c,b = kidney_net(im)
34
  # st.write('________________________________________________')
35
  if a==5:
36
  st.write('________________________________________________')
37
+ c,b = chest_net(im)
38
  # st.write('________________________________________________')
39
  if a==6:
40
  st.write('________________________________________________')
41
+ c,b = skin_net(im)
42
+ return c,b
43
 
44
 
45