Spaces:
Runtime error
Runtime error
change tag output sparate symbol from ', ' to ' | '
Browse files
app.py
CHANGED
@@ -211,9 +211,9 @@ def inference(raw_image, specified_tags, tagging_model_type, tagging_model, grou
|
|
211 |
|
212 |
# return
|
213 |
if tagging_model_type == "RAM":
|
214 |
-
return tags, tags_chinese, out_image
|
215 |
else:
|
216 |
-
return tags, caption, out_image
|
217 |
|
218 |
|
219 |
if __name__ == "__main__":
|
|
|
211 |
|
212 |
# return
|
213 |
if tagging_model_type == "RAM":
|
214 |
+
return tags.replace(", ", " | "), tags_chinese.replace(", ", " | "), out_image
|
215 |
else:
|
216 |
+
return tags.replace(", ", " | "), caption, out_image
|
217 |
|
218 |
|
219 |
if __name__ == "__main__":
|