yoinked commited on
Commit
613fb89
1 Parent(s): ecaf77e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ def image_to_wd14_tags(image: Image.Image, model_name: str, threshold: float,
158
  tag_outformat = tag
159
  if not use_spaces:
160
  tag_outformat = tag_outformat.replace('_', '-')
161
- else
162
  tag_outformat = tag_outformat.replace(' ', ', ')
163
  tag_outformat = tag_outformat.replace('_', ' ')
164
  if use_escape:
 
158
  tag_outformat = tag
159
  if not use_spaces:
160
  tag_outformat = tag_outformat.replace('_', '-')
161
+ else:
162
  tag_outformat = tag_outformat.replace(' ', ', ')
163
  tag_outformat = tag_outformat.replace('_', ' ')
164
  if use_escape: