Spaces:
Runtime error
Runtime error
Update label.py
Browse files
label.py
CHANGED
@@ -115,7 +115,7 @@ weight_softmax = params[-2].data.numpy()
|
|
115 |
weight_softmax[weight_softmax<0] = 0
|
116 |
|
117 |
def predict(img):
|
118 |
-
img = Image.open('6.jpg')
|
119 |
input_img = V(tf(img).unsqueeze(0))
|
120 |
logit = model.forward(input_img)
|
121 |
h_x = F.softmax(logit, 1).data.squeeze()
|
|
|
115 |
weight_softmax[weight_softmax<0] = 0
|
116 |
|
117 |
def predict(img):
|
118 |
+
#img = Image.open('6.jpg')
|
119 |
input_img = V(tf(img).unsqueeze(0))
|
120 |
logit = model.forward(input_img)
|
121 |
h_x = F.softmax(logit, 1).data.squeeze()
|