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