cdnuts commited on
Commit
22d958d
·
verified ·
1 Parent(s): 5f86aeb
Files changed (1) hide show
  1. app.py +1 -1
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())