yoinked commited on
Commit
ecaf77e
1 Parent(s): 4993ea8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -156,7 +156,7 @@ def image_to_wd14_tags(image: Image.Image, model_name: str, threshold: float,
156
  tags_pairs = sorted(tags_pairs, key=lambda x: (-x[1], x[0]))
157
  for tag, score in tags_pairs:
158
  tag_outformat = tag
159
- if not use_spaces::
160
  tag_outformat = tag_outformat.replace('_', '-')
161
  else
162
  tag_outformat = tag_outformat.replace(' ', ', ')
 
156
  tags_pairs = sorted(tags_pairs, key=lambda x: (-x[1], x[0]))
157
  for tag, score in tags_pairs:
158
  tag_outformat = tag
159
+ if not use_spaces:
160
  tag_outformat = tag_outformat.replace('_', '-')
161
  else
162
  tag_outformat = tag_outformat.replace(' ', ', ')