Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ class DogBreedPretrainedWideResnet(ImageClassificationBase):
|
|
| 62 |
return self.network(xb)
|
| 63 |
|
| 64 |
def predict_single(img):
|
| 65 |
-
xb = img.unsqueeze(0) # adding extra dimension
|
| 66 |
xb = to_device(xb, device)
|
| 67 |
preds = model(xb) # change model object here
|
| 68 |
predictions = preds[0]
|
|
|
|
| 62 |
return self.network(xb)
|
| 63 |
|
| 64 |
def predict_single(img):
|
| 65 |
+
#xb = img.unsqueeze(0) # adding extra dimension
|
| 66 |
xb = to_device(xb, device)
|
| 67 |
preds = model(xb) # change model object here
|
| 68 |
predictions = preds[0]
|