Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ model.eval()
|
|
149 |
with open("tagger_tags.json", "rb") as file:
|
150 |
tags = msgspec.json.decode(file.read(), type=dict[str, int])
|
151 |
|
152 |
-
for tag in tags.keys():
|
153 |
tags[tag.replace("_", " ")] = tags.pop(tag)
|
154 |
|
155 |
allowed_tags = list(tags.keys())
|
|
|
149 |
with open("tagger_tags.json", "rb") as file:
|
150 |
tags = msgspec.json.decode(file.read(), type=dict[str, int])
|
151 |
|
152 |
+
for tag in list(tags.keys()):
|
153 |
tags[tag.replace("_", " ")] = tags.pop(tag)
|
154 |
|
155 |
allowed_tags = list(tags.keys())
|