Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,9 +48,9 @@ def predict(path):
|
|
| 48 |
preds = np.squeeze(preds)
|
| 49 |
a = np.argsort(preds)[::-1]
|
| 50 |
results = {}
|
| 51 |
-
|
|
|
|
| 52 |
return results
|
| 53 |
-
|
| 54 |
|
| 55 |
|
| 56 |
title="DenseNet-121"
|
|
|
|
| 48 |
preds = np.squeeze(preds)
|
| 49 |
a = np.argsort(preds)[::-1]
|
| 50 |
results = {}
|
| 51 |
+
for i in a[0:5]:
|
| 52 |
+
results[labels[a[i]]] = float(preds[a[i]])
|
| 53 |
return results
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
title="DenseNet-121"
|