Spaces:
Runtime error
Runtime error
Update app.py
Browse files8 unmodified lines91011121213141516 unmodified lines32333435353637388 unmodified linesimport timm
REPO_ID = "Raaniel/model-smoke"MODEL_FILE_NAME = "model_smoke.pt"MODEL_FILE_NAME = "best_model_epoch_32.pth"USE_CUDA = torch.cuda.is_available()num_classes = 3
16 unmodified lines)
# Load the model weightsmodel.load_state_dict(state['weights'])model.load_state_dict(state)
# Move model to the appropriate devicedevice = torch.device('cuda' if USE_CUDA else 'cpu')app.py+2-2