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