Raj086 commited on
Commit
914b629
1 Parent(s): 9dbf60b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -25
app.py CHANGED
@@ -86,31 +86,8 @@ menu = ['FR','FRM','AB']
86
  option = st.sidebar.selectbox("Select your model",menu)
87
 
88
  if option=='FR':
89
- uploaded_file = st.file_uploader("Choose an image")
90
- if uploaded_file is not None:
91
- if save_uploaded_file(uploaded_file):
92
- display_image = Image.open(uploaded_file)
93
- st.image(display_image)
94
- # feature extract
95
- features = feature_extraction(os.path.join("uploads",uploaded_file.name),model)
96
- # recommendention
97
- indices = recommend(features,feature_list)
98
- # show
99
- st.header("Recommend For You....")
100
- st.text("")
101
- col1,col2,col3,col4,col5 = st.columns(5)
102
- with col1:
103
- st.image(filenames[indices[0][1]])
104
- with col2:
105
- st.image(filenames[indices[0][2]])
106
- with col3:
107
- st.image(filenames[indices[0][3]])
108
- with col4:
109
- st.image(filenames[indices[0][4]])
110
- with col5:
111
- st.image(filenames[indices[0][5]])
112
- else:
113
- st.header("Some error occured in file upload")
114
 
115
 
116
  elif option=='FRM':
 
86
  option = st.sidebar.selectbox("Select your model",menu)
87
 
88
  if option=='FR':
89
+ st.markdown("<h2>Sites Under-Construction :-(</h2>",allow_unsafe_html=True)
90
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
 
92
 
93
  elif option=='FRM':