jamatas commited on
Commit
cd7c81a
1 Parent(s): c6031d2

Update main_page.py

Browse files
Files changed (1) hide show
  1. main_page.py +6 -0
main_page.py CHANGED
@@ -14,6 +14,8 @@ import patoolib
14
  from shutil import rmtree
15
  from os import remove
16
 
 
 
17
  if os.path.isdir("./model_subir/model") == True:
18
  rmtree("./model_subir/model/")
19
  if os.path.isfile("./model_subir/test_model.zip") == True:
@@ -23,6 +25,10 @@ os.system("cat ./model_subir/vgg19_trainable_true_best_model_pruebita.7z.* > ./m
23
 
24
  patoolib.extract_archive("./model_subir/test_model.zip",outdir="./model_subir/model/")
25
  #model = load_model('../../../model/classification/vgg19_trainable_true_best_model.h5')
 
 
 
 
26
  model = load_model('./model_subir/model/vgg19_trainable_true_best_model.h5')
27
 
28
  size = (224, 224)
 
14
  from shutil import rmtree
15
  from os import remove
16
 
17
+ """
18
+ Comentado por falta de 7z, se sube el archivo descomprimido directamente
19
  if os.path.isdir("./model_subir/model") == True:
20
  rmtree("./model_subir/model/")
21
  if os.path.isfile("./model_subir/test_model.zip") == True:
 
25
 
26
  patoolib.extract_archive("./model_subir/test_model.zip",outdir="./model_subir/model/")
27
  #model = load_model('../../../model/classification/vgg19_trainable_true_best_model.h5')
28
+
29
+ """
30
+
31
+
32
  model = load_model('./model_subir/model/vgg19_trainable_true_best_model.h5')
33
 
34
  size = (224, 224)