yoinked commited on
Commit
a950000
1 Parent(s): a18894c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -148,9 +148,9 @@ def image_to_wd14_tags(image: Image.Image, model_name: str, threshold: float,
148
  tag_outformat = tag
149
  if use_spaces:
150
  tag_outformat = tag_outformat.replace('_', ' ')
151
- tag_outformat.replace(' ', '-')
152
  else:
153
- tag_outformat.replace('_', '-')
154
  if use_escape:
155
  tag_outformat = re.sub(RE_SPECIAL, r'\\\1', tag_outformat)
156
  if include_ranks:
 
148
  tag_outformat = tag
149
  if use_spaces:
150
  tag_outformat = tag_outformat.replace('_', ' ')
151
+ tag_outformat = tag_outformat.replace(' ', '-')
152
  else:
153
+ tag_outformat = tag_outformat.replace('_', '-')
154
  if use_escape:
155
  tag_outformat = re.sub(RE_SPECIAL, r'\\\1', tag_outformat)
156
  if include_ranks: