Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from PIL import Image
|
2 |
import torch
|
3 |
import gradio as gr
|
|
|
|
|
4 |
|
5 |
inference = torch.load('fine_tune_resnet.pth')
|
6 |
inference.eval()
|
|
|
1 |
from PIL import Image
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
+
from torchvision.transforms import Compose, Normalize, ToTensor, Resize, CenterCrop
|
5 |
+
|
6 |
|
7 |
inference = torch.load('fine_tune_resnet.pth')
|
8 |
inference.eval()
|