Spaces:
Sleeping
Sleeping
RaulHuarote
commited on
Commit
•
034c215
1
Parent(s):
1afba3c
Update app.py
Browse files
app.py
CHANGED
@@ -18,13 +18,14 @@ app = FastAPI()
|
|
18 |
|
19 |
# Función para construir el modelo manualmente
|
20 |
def build_model():
|
21 |
-
|
22 |
with open('model.json','r') as f:
|
23 |
json = f.read()
|
24 |
model = model_from_json(json)
|
25 |
|
26 |
|
27 |
"""
|
|
|
28 |
model = Sequential(
|
29 |
[
|
30 |
InputLayer(
|
@@ -34,7 +35,6 @@ def build_model():
|
|
34 |
Dense(1, activation="sigmoid", name="dense_3"),
|
35 |
]
|
36 |
)
|
37 |
-
"""
|
38 |
model.load_weights(
|
39 |
"model.h5"
|
40 |
) # Asegúrate de que los nombres de las capas coincidan para que los pesos se carguen correctamente
|
|
|
18 |
|
19 |
# Función para construir el modelo manualmente
|
20 |
def build_model():
|
21 |
+
"""
|
22 |
with open('model.json','r') as f:
|
23 |
json = f.read()
|
24 |
model = model_from_json(json)
|
25 |
|
26 |
|
27 |
"""
|
28 |
+
|
29 |
model = Sequential(
|
30 |
[
|
31 |
InputLayer(
|
|
|
35 |
Dense(1, activation="sigmoid", name="dense_3"),
|
36 |
]
|
37 |
)
|
|
|
38 |
model.load_weights(
|
39 |
"model.h5"
|
40 |
) # Asegúrate de que los nombres de las capas coincidan para que los pesos se carguen correctamente
|