mrmuminov commited on
Commit
040a6f8
·
verified ·
1 Parent(s): fecd9a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,8 +6,7 @@ from torchvision import transforms
6
  from PIL import Image
7
 
8
  # Load your PyTorch model
9
- model = torch.load('your_model.pth') # Replace with your model path
10
- model.eval()
11
 
12
  # Define a function to preprocess the DICOM
13
  def preprocess_dicom(dicom_path):
 
6
  from PIL import Image
7
 
8
  # Load your PyTorch model
9
+ model = torch.hub.load('pytorch/vision:v0.6.0', 'resnet18', pretrained=True).eval()
 
10
 
11
  # Define a function to preprocess the DICOM
12
  def preprocess_dicom(dicom_path):