Ahmed-El-Sharkawy commited on
Commit
6b045fb
·
verified ·
1 Parent(s): 0082ee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ main_model.fc = nn.Sequential(
19
  nn.Linear(num_ftrs, 2) # 2 classes: AI-generated Image, Real Image
20
  )
21
 
22
- main_model.load_state_dict(torch.load('best_model9.pth', map_location=device, weights_only=True)) # Updated: weights_only=True
23
  main_model = main_model.to(device)
24
  main_model.eval()
25
 
 
19
  nn.Linear(num_ftrs, 2) # 2 classes: AI-generated Image, Real Image
20
  )
21
 
22
+ main_model.load_state_dict(torch.load('best_model6for_RESNET18_After_First_Half_training_part.pth', map_location=device, weights_only=True)) # Updated: weights_only=True
23
  main_model = main_model.to(device)
24
  main_model.eval()
25