shashichilappagari commited on
Commit
dac7449
1 Parent(s): 808eea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -15,10 +15,12 @@ dataset_option=st.radio( 'Select a dataset option', ['COCO', 'Face','License Pla
15
  st.header('Choose and Run a Model')
16
  st.text('Select a model and upload an image. Then click on the submit button')
17
  with st.form("model_form"):
18
- act_filtered_model_options = [model if activation in model for model in model_options]
19
- dataset_filtered_model_options=[model if dataset_option in model for model in act_filtered_model_options]
20
- st.write('Number of models found = ', len(dataset_filtered_model_options))
21
- model_name=st.selectbox("Choose a Model from the list", dataset_filtered_model_options)
 
 
22
  uploaded_file=st.file_uploader('input image')
23
  submitted = st.form_submit_button("Submit")
24
  if submitted:
 
15
  st.header('Choose and Run a Model')
16
  st.text('Select a model and upload an image. Then click on the submit button')
17
  with st.form("model_form"):
18
+ filtered_model_list=[]
19
+ for model in model_options:
20
+ if activation_option in model and dataset_option in model:
21
+ filtered_model_list.append(model)
22
+ st.write('Number of models found = ', len(filtered_model_list))
23
+ model_name=st.selectbox("Choose a Model from the list", filtered_model_list)
24
  uploaded_file=st.file_uploader('input image')
25
  submitted = st.form_submit_button("Submit")
26
  if submitted: