Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
4236eec
1
Parent(s):
9c82340
Fix function calls in format_search_results_json and format_search_results to use abstract parameter directly
Browse files
app.py
CHANGED
@@ -461,7 +461,7 @@ def find_synergistic_papers(abstract: str, limit=25) -> list[dict]:
|
|
461 |
def format_search_results_json(abstract: str) -> str:
|
462 |
"""Format search results as JSON for display"""
|
463 |
# Find papers synergistic with the given abstract
|
464 |
-
papers = find_synergistic_papers(
|
465 |
|
466 |
# Convert to JSON for display
|
467 |
json_output = json.dumps(papers, indent=2)
|
@@ -473,7 +473,7 @@ def format_search_results(abstract: str) -> tuple[pd.DataFrame, list[dict]]:
|
|
473 |
"""Format search results as a DataFrame for display"""
|
474 |
# Find papers synergistic with the given abstract
|
475 |
# papers = embedding_model.find_synergistic_papers(abstract)
|
476 |
-
papers = find_synergistic_papers(
|
477 |
|
478 |
# Convert to DataFrame for display
|
479 |
df = pd.DataFrame(
|
|
|
461 |
def format_search_results_json(abstract: str) -> str:
|
462 |
"""Format search results as JSON for display"""
|
463 |
# Find papers synergistic with the given abstract
|
464 |
+
papers = find_synergistic_papers(abstract)
|
465 |
|
466 |
# Convert to JSON for display
|
467 |
json_output = json.dumps(papers, indent=2)
|
|
|
473 |
"""Format search results as a DataFrame for display"""
|
474 |
# Find papers synergistic with the given abstract
|
475 |
# papers = embedding_model.find_synergistic_papers(abstract)
|
476 |
+
papers = find_synergistic_papers(abstract)
|
477 |
|
478 |
# Convert to DataFrame for display
|
479 |
df = pd.DataFrame(
|