Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def do_predict(pil_img: PIL.Image.Image):
|
|
| 27 |
# Save to tmp for AutoGluon input
|
| 28 |
pil_resized.save(TMP_PATH)
|
| 29 |
|
| 30 |
-
df = pd.DataFrame({"image": [str(
|
| 31 |
|
| 32 |
# Predict probabilities
|
| 33 |
proba_df = PREDICTOR.predict_proba(df)
|
|
|
|
| 27 |
# Save to tmp for AutoGluon input
|
| 28 |
pil_resized.save(TMP_PATH)
|
| 29 |
|
| 30 |
+
df = pd.DataFrame({"image": [str(TMP_PATH)]})
|
| 31 |
|
| 32 |
# Predict probabilities
|
| 33 |
proba_df = PREDICTOR.predict_proba(df)
|