Spaces:
Runtime error
Runtime error
Update app.py
Browse files7 unmodified lines891011111213141516177 unmodified lines# Define el modelo y carga los pesos guardadosmodel = efficientnet_b0(weights=EfficientNet_B0_Weights.DEFAULT)model.classifier[1] = torch.nn.Linear(in_features=1280, out_features=101)
model.load_state_dict(torch.load('./Model_Food_ProyectoIA'), map_location=torch.device('cpu'))#model.load_state_dict(torch.load('./Model_Food_ProyectoIA'), map_location=torch.device('cpu'))model.load_state_dict(torch.load('./Model_Food_ProyectoIA', map_location=torch.device('cpu')))
model.eval() # Poner el modelo en modo evaluaci贸n
app.py+4-1