DanZX3 commited on
Commit
25d8f52
·
1 Parent(s): ca1dbc0

nuevo modelo h5

Browse files
Files changed (2) hide show
  1. app.py +17 -17
  2. face_classifier_model.h5 +1 -1
app.py CHANGED
@@ -27,23 +27,23 @@ classifier_model.compile(loss=tf.keras.losses.SparseCategoricalCrossentropy(),
27
  optimizer='nadam',
28
  metrics=['accuracy'])
29
 
30
- person_rep = {0: 'DenzelWashington',
31
- 1: 'Angelina Jolie',
32
- 2: 'Tom Cruise',
33
- 3: 'Tom Hanks',
34
- 4: 'Johnny Depp',
35
- 5: 'Will Smith',
36
- 6: 'Scarlett Johansson',
37
- 7: 'Jennifer Lawrence',
38
- 8: 'Sandra Bullock',
39
- 9: 'Megan Fox',
40
- 10: 'Robert Downey Jr',
41
- 11: 'Brad Pitt',
42
- 12: 'Kate Winslet',
43
- 13: 'Natalie Portman',
44
- 14: 'Nicole Kidman',
45
- 15: 'HughJ ackman',
46
- 16: 'Leonardo DiCaprio'}
47
 
48
  def predict_image(image_path):
49
  img = load_img(image_path, target_size=(224, 224))
 
27
  optimizer='nadam',
28
  metrics=['accuracy'])
29
 
30
+ person_rep={0: 'DenzelWashington',
31
+ 1: 'AngelinaJolie',
32
+ 2: 'KateWinslet',
33
+ 3: 'HughJackman',
34
+ 4: 'ScarlettJohansson',
35
+ 5: 'JenniferLawrence',
36
+ 6: 'NicoleKidman',
37
+ 7: 'SandraBullock',
38
+ 8: 'LeonardoDiCaprio',
39
+ 9: 'MeganFox',
40
+ 10: 'WillSmith',
41
+ 11: 'TomCruise',
42
+ 12: 'BradPitt',
43
+ 13: 'NataliePortman',
44
+ 14: 'TomHanks',
45
+ 15: 'JohnnyDepp',
46
+ 16: 'RobertDowneyJr'}
47
 
48
  def predict_image(image_path):
49
  img = load_img(image_path, target_size=(224, 224))
face_classifier_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aae463ba877a328fd37eefb67f71d51f68768d0a4a60239f2fb7f310044ac38a
3
  size 3219008
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fd6ffcd4f98f5074cad8adcaa7e7897885f65ff5f446ab368d834098d3639a1
3
  size 3219008