tlucch commited on
Commit
80ce317
·
1 Parent(s): c7d03f1

downloadable files

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -37,14 +37,6 @@ load_img = LoadImage(image_only=True)
37
  #SET CLASSES
38
  class_names = CLASSES
39
 
40
- #SET IMAGE PATH LIST FOR STREAMLIT'S SELECT BOX
41
- filelist=[""]
42
- for root, dirs, files in os.walk("images/raw"):
43
- for file in files:
44
- filename=file.split(".")[0]
45
- filelist.append(filename)
46
- filelist = tuple(filelist)
47
-
48
  #SILENCE STREAMIT WARNING
49
  st.set_option('deprecation.showPyplotGlobalUse', False)
50
 
@@ -73,7 +65,7 @@ with st.sidebar:
73
  st.title("Alzheimer Classifier Demo")
74
  img_path = st.selectbox(
75
  "Select Image",
76
- filelist,
77
  on_change= click_false,
78
  )
79
  col1, col2 = st.columns((1,1))
 
37
  #SET CLASSES
38
  class_names = CLASSES
39
 
 
 
 
 
 
 
 
 
40
  #SILENCE STREAMIT WARNING
41
  st.set_option('deprecation.showPyplotGlobalUse', False)
42
 
 
65
  st.title("Alzheimer Classifier Demo")
66
  img_path = st.selectbox(
67
  "Select Image",
68
+ class_names,
69
  on_change= click_false,
70
  )
71
  col1, col2 = st.columns((1,1))