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