Spaces:
Running
Running
Update app.py
Browse files
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:
|