sartizAyon commited on
Commit
62b1abd
·
verified ·
1 Parent(s): 2e5dd3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def predict_dr(image):
26
  try:
27
  # Load model (you'll need to update this path)
28
  model = create_model()
29
- model.load_state_dict(torch.load('model.pth', map_location=torch.device('cpu')))
30
  model.eval()
31
 
32
  # Preprocess image
 
26
  try:
27
  # Load model (you'll need to update this path)
28
  model = create_model()
29
+ model.load_state_dict(torch.load('diabeticRetinopathy.pth', map_location=torch.device('cpu')))
30
  model.eval()
31
 
32
  # Preprocess image