Spaces:
Running
on
Zero
Running
on
Zero
fix tag
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ model.eval()
|
|
205 |
with open("tagger_tags.json", "rb") as file:
|
206 |
tags = msgspec.json.decode(file.read(), type=dict[str, int])
|
207 |
|
208 |
-
for tag in tags.keys():
|
209 |
tags[tag.replace("_", " ")] = tags.pop(tag)
|
210 |
|
211 |
allowed_tags = list(tags.keys())
|
|
|
205 |
with open("tagger_tags.json", "rb") as file:
|
206 |
tags = msgspec.json.decode(file.read(), type=dict[str, int])
|
207 |
|
208 |
+
for tag in list(tags.keys()):
|
209 |
tags[tag.replace("_", " ")] = tags.pop(tag)
|
210 |
|
211 |
allowed_tags = list(tags.keys())
|