Spaces:
Running
Running
fancyfeast
commited on
Commit
·
128e51e
1
Parent(s):
b72bef3
Bugfix
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def predict(image: Image.Image):
|
|
| 45 |
preds = model(batch)
|
| 46 |
tag_preds = preds['tags'].sigmoid().cpu()
|
| 47 |
|
| 48 |
-
return {top_tags[i]: tag_preds[i] for i in range(len(top_tags))}
|
| 49 |
|
| 50 |
|
| 51 |
print("Downloading model...")
|
|
|
|
| 45 |
preds = model(batch)
|
| 46 |
tag_preds = preds['tags'].sigmoid().cpu()
|
| 47 |
|
| 48 |
+
return {top_tags[i]: tag_preds[0][i] for i in range(len(top_tags))}
|
| 49 |
|
| 50 |
|
| 51 |
print("Downloading model...")
|