Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,9 +106,9 @@ def format_prompt(query, search_results, instructions):
|
|
106 |
link = result["link"]
|
107 |
text = result["text"]
|
108 |
if link:
|
109 |
-
formatted_results += f"URL: {link}\nContent: {text}\n{'-'80}\n"
|
110 |
else:
|
111 |
-
formatted_results += "No link found.\n" + '-'80 + '\n'
|
112 |
|
113 |
prompt = f"{instructions}User Query: {query}\n\nWeb Search Results:\n{formatted_results}\n\nAssistant:"
|
114 |
return prompt
|
|
|
106 |
link = result["link"]
|
107 |
text = result["text"]
|
108 |
if link:
|
109 |
+
formatted_results += f"URL: {link}\nContent: {text}\n{'-' * 80}\n"
|
110 |
else:
|
111 |
+
formatted_results += "No link found.\n" + '-' * 80 + '\n'
|
112 |
|
113 |
prompt = f"{instructions}User Query: {query}\n\nWeb Search Results:\n{formatted_results}\n\nAssistant:"
|
114 |
return prompt
|