Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,8 +79,7 @@ def predict(img):
|
|
| 79 |
output = model(img_input)
|
| 80 |
pred_class = torch.argmax(output, dim=1).item()
|
| 81 |
|
| 82 |
-
return {class_ids[
|
| 83 |
-
|
| 84 |
# ----------------------------
|
| 85 |
# Gradio UI
|
| 86 |
# ----------------------------
|
|
|
|
| 79 |
output = model(img_input)
|
| 80 |
pred_class = torch.argmax(output, dim=1).item()
|
| 81 |
|
| 82 |
+
return {class_ids[pred_class]: 1.0}
|
|
|
|
| 83 |
# ----------------------------
|
| 84 |
# Gradio UI
|
| 85 |
# ----------------------------
|