Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -38,7 +38,7 @@ def process_tags_chat(search_results):
|
|
38 |
filtered_links = []
|
39 |
if relevant_links:
|
40 |
# Limitar a solo dos tags
|
41 |
-
tag_list = ["
|
42 |
for link in relevant_links:
|
43 |
if any(tag in link for tag in tag_list):
|
44 |
tags_detected.append(link) # Guardar el tag pero no mostrarlo
|
@@ -51,8 +51,8 @@ def process_tags_chat(search_results):
|
|
51 |
|
52 |
# Manejar las imágenes basadas en los tags detectados
|
53 |
tags_to_images = {
|
54 |
-
"
|
55 |
-
"
|
56 |
}
|
57 |
|
58 |
for tag in tags_detected:
|
|
|
38 |
filtered_links = []
|
39 |
if relevant_links:
|
40 |
# Limitar a solo dos tags
|
41 |
+
tag_list = ["rld0", "rld1"]
|
42 |
for link in relevant_links:
|
43 |
if any(tag in link for tag in tag_list):
|
44 |
tags_detected.append(link) # Guardar el tag pero no mostrarlo
|
|
|
51 |
|
52 |
# Manejar las imágenes basadas en los tags detectados
|
53 |
tags_to_images = {
|
54 |
+
"rld0": "images/rld0.png",
|
55 |
+
"rld1": "images/rld1.png",
|
56 |
}
|
57 |
|
58 |
for tag in tags_detected:
|