Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -42,7 +42,7 @@ def AMP(file): | |
| 42 | 
             
                        return torch.softmax(output_feature,dim=1)
         | 
| 43 |  | 
| 44 | 
             
                model = MyModel()
         | 
| 45 | 
            -
                model.load_state_dict(torch.load("best_model.pth", map_location=torch.device('cpu')))
         | 
| 46 | 
             
                model = model.to(device)
         | 
| 47 | 
             
                model.eval()
         | 
| 48 | 
             
                out_probability = []
         | 
|  | |
| 42 | 
             
                        return torch.softmax(output_feature,dim=1)
         | 
| 43 |  | 
| 44 | 
             
                model = MyModel()
         | 
| 45 | 
            +
                model.load_state_dict(torch.load("best_model.pth", map_location=torch.device('cpu')), strict=False)
         | 
| 46 | 
             
                model = model.to(device)
         | 
| 47 | 
             
                model.eval()
         | 
| 48 | 
             
                out_probability = []
         |