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