lopesdri commited on
Commit
33d6349
·
1 Parent(s): ad03cdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  # Load your PyTorch model
2
  model = resnet50(pretrained=False)
3
  model.fc = nn.Linear(model.fc.in_features, 2)
 
1
+ import gradio as gr
2
+ import torch
3
+ from torchvision.transforms import ToTensor
4
+ from torchvision.models import resnet50
5
+ from PIL import Image
6
+ import torch.nn as nn
7
+
8
  # Load your PyTorch model
9
  model = resnet50(pretrained=False)
10
  model.fc = nn.Linear(model.fc.in_features, 2)