Update app2.py
Browse files
app2.py
CHANGED
@@ -595,9 +595,8 @@ def find_case_precedents(case_details: str) -> Dict[str, Any]:
|
|
595 |
Wikipedia Information:
|
596 |
{wiki_result['summary']}
|
597 |
|
598 |
-
Provide a
|
599 |
-
|
600 |
-
Do not introduce any speculative or hypothetical scenarios.
|
601 |
"""
|
602 |
|
603 |
summary = get_ai_response(compilation_prompt)
|
@@ -1742,28 +1741,12 @@ elif feature == "Case Precedent Finder":
|
|
1742 |
st.markdown(f"**Snippet:** {result['snippet']}")
|
1743 |
st.markdown("---")
|
1744 |
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
"""
|
1752 |
-
<style>
|
1753 |
-
.stButton > button {
|
1754 |
-
width: 100%;
|
1755 |
-
}
|
1756 |
-
.stTextArea > div > div > textarea {
|
1757 |
-
font-size: 16px;
|
1758 |
-
}
|
1759 |
-
h1, h2, h3 {
|
1760 |
-
margin-top: 1em;
|
1761 |
-
margin-bottom: 0.5em;
|
1762 |
-
}
|
1763 |
-
</style>
|
1764 |
-
""",
|
1765 |
-
unsafe_allow_html=True
|
1766 |
-
)
|
1767 |
|
1768 |
elif feature == "Legal Cost Estimator":
|
1769 |
legal_cost_estimator_ui()
|
|
|
595 |
Wikipedia Information:
|
596 |
{wiki_result['summary']}
|
597 |
|
598 |
+
Provide a well-structured summary highlighting the most relevant precedents and legal principles
|
599 |
+
Do not introduce any hypothetical scenarios.
|
|
|
600 |
"""
|
601 |
|
602 |
summary = get_ai_response(compilation_prompt)
|
|
|
1741 |
st.markdown(f"**Snippet:** {result['snippet']}")
|
1742 |
st.markdown("---")
|
1743 |
|
1744 |
+
if precedents["wikipedia"]:
|
1745 |
+
st.markdown("## Wikipedia Information")
|
1746 |
+
wiki_info = precedents["wikipedia"]
|
1747 |
+
st.markdown(f"### {wiki_info['title']}")
|
1748 |
+
st.markdown(wiki_info['summary'])
|
1749 |
+
st.markdown(f"[Read more on Wikipedia]({wiki_info['url']})")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1750 |
|
1751 |
elif feature == "Legal Cost Estimator":
|
1752 |
legal_cost_estimator_ui()
|