drhead commited on
Commit
172607a
·
verified ·
1 Parent(s): 2c3b7a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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())