Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def create_prompt(query, contexts):
|
|
149 |
return prompt_start + current_contexts + prompt_end
|
150 |
|
151 |
def complete(prompt):
|
152 |
-
return [f"Hola"]
|
153 |
|
154 |
def check_image_exists(filepath):
|
155 |
return os.path.exists(filepath)
|
@@ -190,7 +190,8 @@ def chat_function(message, history):
|
|
190 |
|
191 |
# Add the first relevant link under a single "Respuestas relevantes" section
|
192 |
if filtered_links:
|
193 |
-
full_response += f".\n\nTe detallamos nuestro contenido a continuación:\n" + filtered_links[0]
|
|
|
194 |
|
195 |
# Now handle the images based on the detected tags
|
196 |
tags_to_images = {
|
|
|
149 |
return prompt_start + current_contexts + prompt_end
|
150 |
|
151 |
def complete(prompt):
|
152 |
+
return [None] # return [f"Hola"]
|
153 |
|
154 |
def check_image_exists(filepath):
|
155 |
return os.path.exists(filepath)
|
|
|
190 |
|
191 |
# Add the first relevant link under a single "Respuestas relevantes" section
|
192 |
if filtered_links:
|
193 |
+
full_response += filtered_links[0] #f".\n\nTe detallamos nuestro contenido a continuación:\n" + filtered_links[0]
|
194 |
+
|
195 |
|
196 |
# Now handle the images based on the detected tags
|
197 |
tags_to_images = {
|