Nuno-Tome commited on
Commit
aad65ce
β€’
1 Parent(s): 4535055

no message

Browse files
Files changed (1) hide show
  1. app.py +26 -28
app.py CHANGED
@@ -115,33 +115,31 @@ def main():
115
  # import subprocess
116
  # subprocess.call(["shutdown", "-r", "-t", "0"])
117
 
118
- with CONTAINER_BODY:
119
-
120
- with COLS[0]:
121
- st.markdown("This app uses several πŸ€— models to classify images stored in πŸ€— datasets.")
122
- st.write("Soon we will have a dataset template")
123
-
124
- #Model
125
- chosen_model_name = st.selectbox("Select the model to use", MODELS, index=0)
126
- if chosen_model_name is not None:
127
- COLS[0].st.write("You selected", chosen_model_name)
128
-
129
- #Dataset
130
- shosen_dataset_name = st.selectbox("Select the dataset to use", DATASETS, index=0)
131
- if shosen_dataset_name is not None:
132
- COLS[0].st.write("You selected", shosen_dataset_name)
133
-
134
- #click to classify
135
- #image_object = dataset['pasta'][0]
136
- if chosen_model_name is not None and shosen_dataset_name is not None:
137
- if COLS[0].button("Classify images"):
138
-
139
- #classification_array =[]
140
- classification_result = classify_full_dataset(shosen_dataset_name, chosen_model_name)
141
- CONTAINER_LOOP.write(f"Classification result: {classification_result}")
142
- #classification_array.append(classification_result)
143
- #st.write("# FLAG 6")
144
- #st.write(classification_array)
145
-
146
  if __name__ == "__main__":
147
  main()
 
115
  # import subprocess
116
  # subprocess.call(["shutdown", "-r", "-t", "0"])
117
 
118
+ #with CONTAINER_BODY:
119
+ with CONTAINER_TOP:
120
+ st.markdown("This app uses several πŸ€— models to classify images stored in πŸ€— datasets.")
121
+ st.write("Soon we will have a dataset template")
122
+
123
+ #Model
124
+ chosen_model_name = COLS[0].selectbox("Select the model to use", MODELS, index=0)
125
+ if chosen_model_name is not None:
126
+ COLS[0].write("You selected", chosen_model_name)
127
+
128
+ #Dataset
129
+ shosen_dataset_name = COLS[0].selectbox("Select the dataset to use", DATASETS, index=0)
130
+ if shosen_dataset_name is not None:
131
+ COLS[0].write("You selected", shosen_dataset_name)
132
+
133
+ #click to classify
134
+ #image_object = dataset['pasta'][0]
135
+ if chosen_model_name is not None and shosen_dataset_name is not None:
136
+ if COLS[0].button("Classify images"):
137
+
138
+ #classification_array =[]
139
+ classification_result = classify_full_dataset(shosen_dataset_name, chosen_model_name)
140
+ CONTAINER_LOOP.write(f"Classification result: {classification_result}")
141
+ #classification_array.append(classification_result)
142
+ #st.write("# FLAG 6")
143
+ #st.write(classification_array)
 
 
144
  if __name__ == "__main__":
145
  main()