Spaces:
Running
Running
Update app.py
Browse files
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
|
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 use_spaces:
|
160 |
tag_outformat = tag_outformat.replace('_', '-')
|
161 |
else:
|
162 |
tag_outformat = tag_outformat.replace(' ', ', ')
|