moshel commited on
Commit
a3093be
·
1 Parent(s): 8855229
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  import torch
5
  import torchvision
6
 
7
- model = torch.load('v4-epoch=19-val_loss=0.6964-val_accuracy=0.8964.ckpt', map_location=torch.device('cpu'))
8
  state_dict = checkpoint["state_dict"]
9
  model_weights = state_dict
10
  for key in list(model_weights):
 
4
  import torch
5
  import torchvision
6
 
7
+ checkpoint = torch.load('v4-epoch=19-val_loss=0.6964-val_accuracy=0.8964.ckpt', map_location=torch.device('cpu'))
8
  state_dict = checkpoint["state_dict"]
9
  model_weights = state_dict
10
  for key in list(model_weights):