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