Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
import torchvision
|
3 |
import torchvision.transforms as transforms
|
|
|
|
|
|
|
4 |
|
5 |
def normalize():
|
6 |
MEAN = [0.485, 0.456, 0.406]
|
|
|
1 |
import gradio as gr
|
2 |
import torchvision
|
3 |
import torchvision.transforms as transforms
|
4 |
+
import torch
|
5 |
+
|
6 |
+
model = torch.jit.load('https://huggingface.co/spaces/1-13-am/neural-style-transfer/blob/main/neural_style_transfer.pt')
|
7 |
|
8 |
def normalize():
|
9 |
MEAN = [0.485, 0.456, 0.406]
|