Caroline Mai Chan
commited on
Commit
•
0c911ca
1
Parent(s):
3a27073
debugging 3000
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ model.eval()
|
|
89 |
|
90 |
def predict(input_img):
|
91 |
input_img = Image.open(input_img)
|
92 |
-
transforms.Compose([transforms.Resize(256, Image.BICUBIC), transforms.ToTensor()])
|
93 |
input_img = transform(input_img)
|
94 |
input_img = torch.unsqueeze(input_img, 0)
|
95 |
|
@@ -101,7 +101,7 @@ def predict(input_img):
|
|
101 |
|
102 |
title="informative-drawings"
|
103 |
description="Gradio Demo for line drawing generation. "
|
104 |
-
article = "<p style='text-align: center'><a href='
|
105 |
examples=[['cat.png']]
|
106 |
|
107 |
|
|
|
89 |
|
90 |
def predict(input_img):
|
91 |
input_img = Image.open(input_img)
|
92 |
+
transform = transforms.Compose([transforms.Resize(256, Image.BICUBIC), transforms.ToTensor()])
|
93 |
input_img = transform(input_img)
|
94 |
input_img = torch.unsqueeze(input_img, 0)
|
95 |
|
|
|
101 |
|
102 |
title="informative-drawings"
|
103 |
description="Gradio Demo for line drawing generation. "
|
104 |
+
article = "<p style='text-align: center'><a href='TODO' target='_blank'>Project Page</a> | <a href='codelink' target='_blank'>Github</a></p>"
|
105 |
examples=[['cat.png']]
|
106 |
|
107 |
|