Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def main():
|
|
| 106 |
|
| 107 |
if pred_button:
|
| 108 |
|
| 109 |
-
outputs =
|
| 110 |
_, y_hat = outputs.max(1)
|
| 111 |
predicted_idx = str(y_hat.item())
|
| 112 |
right_column.title("Prediction")
|
|
|
|
| 106 |
|
| 107 |
if pred_button:
|
| 108 |
|
| 109 |
+
outputs = int(model.predict(image))
|
| 110 |
_, y_hat = outputs.max(1)
|
| 111 |
predicted_idx = str(y_hat.item())
|
| 112 |
right_column.title("Prediction")
|