Nuno-Tome commited on
Commit
13e77a1
1 Parent(s): e47de68

no message

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -11,8 +11,8 @@ MODELS = [
11
  ]
12
  DATASETS = [
13
  "",
14
- "NunT/vit-base-patch16-224", #Classifição geral
15
- "NunT/vit-age-classifier" #Classifição de idade
16
  ]
17
  MAX_N_LABELS = 5
18
 
@@ -48,7 +48,7 @@ def main():
48
  '''
49
  Dataset
50
  '''
51
- shosen_dataset_name =st.radio("Select the model to use", MODELS)
52
  if shosen_dataset_name is not None:
53
  st.write("You selected", shosen_dataset_name)
54
  image_object = dataset['pasta'][0]["image"]
@@ -56,7 +56,7 @@ def main():
56
  '''
57
  click to classify
58
  '''
59
- if shosen_model is not None and shosen_dataset is not None:
60
  st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
61
  if st.button("Classify images"):
62
  dataset = load_dataset("Nunt/testedata","testedata_readme")
 
11
  ]
12
  DATASETS = [
13
  "",
14
+ "Nunt/testedata",
15
+ "Nunt/backup_leonardo_2024-02-01"
16
  ]
17
  MAX_N_LABELS = 5
18
 
 
48
  '''
49
  Dataset
50
  '''
51
+ shosen_dataset_name = st.radio("Select the model to use", DATASETS)
52
  if shosen_dataset_name is not None:
53
  st.write("You selected", shosen_dataset_name)
54
  image_object = dataset['pasta'][0]["image"]
 
56
  '''
57
  click to classify
58
  '''
59
+ if shosen_model_name is not None and shosen_dataset_name is not None:
60
  st.image(shosen_dataset[0], caption="Uploaded Image", use_column_width=True)
61
  if st.button("Classify images"):
62
  dataset = load_dataset("Nunt/testedata","testedata_readme")