Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
8d1f6b1
1
Parent(s):
b6c2057
Add JSON output logging and change output format for synergistic papers in create_interface
Browse files
app.py
CHANGED
@@ -458,6 +458,7 @@ def format_search_results_json(abstract: str) -> str:
|
|
458 |
|
459 |
# Convert to JSON for display
|
460 |
json_output = json.dumps(papers, indent=2)
|
|
|
461 |
return json_output
|
462 |
|
463 |
|
@@ -664,7 +665,9 @@ def create_interface():
|
|
664 |
|
665 |
# Hidden UI elements for API endpoint
|
666 |
abstract_input_hidden = gr.Textbox(visible=False, label="Abstract Input", key="abstract_hidden")
|
667 |
-
synergistic_papers_output = gr.
|
|
|
|
|
668 |
search_btn_hidden = gr.Button(visible=False, key="search_hidden")
|
669 |
|
670 |
# API endpoint for find_synergistic_papers
|
|
|
458 |
|
459 |
# Convert to JSON for display
|
460 |
json_output = json.dumps(papers, indent=2)
|
461 |
+
print(f"JSON output: {json_output}")
|
462 |
return json_output
|
463 |
|
464 |
|
|
|
665 |
|
666 |
# Hidden UI elements for API endpoint
|
667 |
abstract_input_hidden = gr.Textbox(visible=False, label="Abstract Input", key="abstract_hidden")
|
668 |
+
synergistic_papers_output = gr.Textbox(
|
669 |
+
visible=False, label="Synergistic Papers", key="synergistic_papers_output"
|
670 |
+
)
|
671 |
search_btn_hidden = gr.Button(visible=False, key="search_hidden")
|
672 |
|
673 |
# API endpoint for find_synergistic_papers
|