cdnuts commited on
Commit
9afdd42
1 Parent(s): 31fb66d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -48,7 +48,10 @@ def create_tags(image):
48
  temp = sorted(temp, key=lambda x: x[1], reverse=True)
49
  text = ""
50
  for i in range(len(temp)):
51
- text += temp[i][0] + (' ,' if i < len(temp) - 1 else '')
 
 
 
52
  return text
53
 
54
  demo = gr.Interface(
 
48
  temp = sorted(temp, key=lambda x: x[1], reverse=True)
49
  text = ""
50
  for i in range(len(temp)):
51
+ text += temp[i][0] + (', ' if i < len(temp) - 1 else '')
52
+ text = text.replace(r"placeholder1, ", "")
53
+ text = text.replace("_", " ")
54
+ text = text.replace("(", "\\(").replace(")", "\\)")
55
  return text
56
 
57
  demo = gr.Interface(