Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def predict(image):
|
|
| 17 |
|
| 18 |
# Make prediction
|
| 19 |
with torch.no_grad():
|
| 20 |
-
outputs =
|
| 21 |
predicted_class_idx = torch.argmax(outputs.logits, dim=1).item()
|
| 22 |
|
| 23 |
# Get predicted class label
|
|
|
|
| 17 |
|
| 18 |
# Make prediction
|
| 19 |
with torch.no_grad():
|
| 20 |
+
outputs = model(**inputs)
|
| 21 |
predicted_class_idx = torch.argmax(outputs.logits, dim=1).item()
|
| 22 |
|
| 23 |
# Get predicted class label
|