majinyu commited on
Commit
0da4c5f
·
1 Parent(s): 0b46e91

change tag output sparate symbol from ', ' to ' | '

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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__":