Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|