Spaces:
Runtime error
Runtime error
shashichilappagari
commited on
Commit
•
dac7449
1
Parent(s):
808eea5
Update app.py
Browse files
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
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:
|