Spaces:
Running
Running
Updated search function
Browse filesUpdated search function for better readability and clarity
app.py
CHANGED
@@ -87,7 +87,7 @@ def search_papers(user_input):
|
|
87 |
print(f"DEBUG: Results received - {results}") # Debug function output
|
88 |
|
89 |
if isinstance(results, list) and results and isinstance(results[0], dict):
|
90 |
-
#
|
91 |
formatted_results = "\n\n".join([
|
92 |
f"---\n\n"
|
93 |
f"📌 **Title:**\n{paper['title']}\n\n"
|
|
|
87 |
print(f"DEBUG: Results received - {results}") # Debug function output
|
88 |
|
89 |
if isinstance(results, list) and results and isinstance(results[0], dict):
|
90 |
+
#Format output with better readability and clarity
|
91 |
formatted_results = "\n\n".join([
|
92 |
f"---\n\n"
|
93 |
f"📌 **Title:**\n{paper['title']}\n\n"
|