Spaces:
Sleeping
Sleeping
Fixing load function
Browse files12 unmodified lines131415161617181912 unmodified lines
class_names = ["pizza", "steak", "sushi"]model,transform = create_model()model.load_state_dict(torch.load(f="_Deploy_effB2.pth"))model.load_state_dict(torch.load(f="_Deploy_effB2.pth"),map_location=torch.device('cpu'))model.to("cpu")example_list = [["Examples/" + example] for example in os.listdir("Examples")]
app.py+1-1