Spaces:
Sleeping
Sleeping
Commit
·
3fe9024
1
Parent(s):
db59f6d
Refactor output formatting in analyse_abstracts function for improved readability
Browse files
app.py
CHANGED
@@ -205,9 +205,9 @@ def analyse_abstracts(query_abstract: str, compare_abstract: dict) -> str:
|
|
205 |
formatted_output = "# Connection Analysis\n"
|
206 |
if "bridge_exists" in output and output["bridge_exists"] is False:
|
207 |
formatted_output += "There is no bridge between the two papers."
|
208 |
-
formatted_output += "## Explanation\n" + output.get("bridge_explanation", "No explanation provided.")
|
209 |
elif "bridge_exists" in output and output["bridge_exists"] is True:
|
210 |
-
formatted_output += "## Bridge Concept\n" + output.get("bridge_concept", "Unknown")
|
211 |
formatted_output += "\n## Explanation\n" + output.get("bridge_explanation", "No explanation provided.")
|
212 |
formatted_output += "\n## Hypothesis\n" + output.get("hypothesis", "No hypothesis provided.")
|
213 |
else:
|
|
|
205 |
formatted_output = "# Connection Analysis\n"
|
206 |
if "bridge_exists" in output and output["bridge_exists"] is False:
|
207 |
formatted_output += "There is no bridge between the two papers."
|
208 |
+
formatted_output += "\n## Explanation\n" + output.get("bridge_explanation", "No explanation provided.")
|
209 |
elif "bridge_exists" in output and output["bridge_exists"] is True:
|
210 |
+
formatted_output += "\n## Bridge Concept\n" + output.get("bridge_concept", "Unknown")
|
211 |
formatted_output += "\n## Explanation\n" + output.get("bridge_explanation", "No explanation provided.")
|
212 |
formatted_output += "\n## Hypothesis\n" + output.get("hypothesis", "No hypothesis provided.")
|
213 |
else:
|