Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -42,7 +42,7 @@ def process_tags_chat(search_results):
|
|
42 |
filtered_links = []
|
43 |
if relevant_links:
|
44 |
# Limitar a solo dos tags
|
45 |
-
tag_list = ["rld 0", "rld 1"] # Ajusta estos tags según tus necesidades
|
46 |
for link in relevant_links:
|
47 |
if any(tag in link for tag in tag_list):
|
48 |
tags_detected.append(link) # Guardar el tag pero no mostrarlo
|
@@ -57,9 +57,9 @@ def process_tags_chat(search_results):
|
|
57 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
58 |
images_dir = os.path.join(current_dir, "images") # Asegúrate de que la carpeta 'images' exista
|
59 |
tags_to_images = {
|
60 |
-
"rld 0": os.path.join(images_dir, "
|
61 |
-
"rld 1": os.path.join(images_dir, "
|
62 |
-
"rld 2": os.path.join(images_dir, "
|
63 |
# Agrega más mappings según tus tags e imágenes
|
64 |
}
|
65 |
|
|
|
42 |
filtered_links = []
|
43 |
if relevant_links:
|
44 |
# Limitar a solo dos tags
|
45 |
+
tag_list = ["rld 0", "rld 1", "rld2"] # Ajusta estos tags según tus necesidades
|
46 |
for link in relevant_links:
|
47 |
if any(tag in link for tag in tag_list):
|
48 |
tags_detected.append(link) # Guardar el tag pero no mostrarlo
|
|
|
57 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
58 |
images_dir = os.path.join(current_dir, "images") # Asegúrate de que la carpeta 'images' exista
|
59 |
tags_to_images = {
|
60 |
+
"rld 0": os.path.join(images_dir, "rld0.png"),
|
61 |
+
"rld 1": os.path.join(images_dir, "rld1.png"),
|
62 |
+
"rld 2": os.path.join(images_dir, "rld2.png"),
|
63 |
# Agrega más mappings según tus tags e imágenes
|
64 |
}
|
65 |
|