Update app2.py
Browse files
app2.py
CHANGED
@@ -1494,7 +1494,7 @@ def generate_legal_brief(case_info):
|
|
1494 |
full_brief = ""
|
1495 |
|
1496 |
for i, chunk in enumerate(chunks):
|
1497 |
-
prompt = f"""Generate a part of a comprehensive legal brief based on the following information. This is part {i+1} of {len(chunks)}. Focus on:
|
1498 |
1. A summary of the facts
|
1499 |
2. Identification of key legal issues
|
1500 |
3. Relevant laws and precedents
|
@@ -1502,13 +1502,10 @@ def generate_legal_brief(case_info):
|
|
1502 |
5. Conclusion and recommendations
|
1503 |
6. An analysis of why the winning party won
|
1504 |
7. A review of how the losing party could have potentially won
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
3. Key areas where user should be carefull and could potentially loose this case.
|
1510 |
-
4. Relevant Arguments for this case to be provided in the court.
|
1511 |
-
5. predict wheter user can win this case or not.
|
1512 |
|
1513 |
Case Information (Part {i+1}/{len(chunks)}):
|
1514 |
{chunk}
|
@@ -1530,7 +1527,8 @@ def generate_legal_brief(case_info):
|
|
1530 |
|
1531 |
def automated_legal_brief_generation_ui():
|
1532 |
st.title("Automated Legal Brief Generation")
|
1533 |
-
st.
|
|
|
1534 |
if 'legal_brief' not in st.session_state:
|
1535 |
st.session_state.legal_brief = ""
|
1536 |
|
|
|
1494 |
full_brief = ""
|
1495 |
|
1496 |
for i, chunk in enumerate(chunks):
|
1497 |
+
prompt = f"""Generate a part of a comprehensive legal brief based on the following information (generate point 8, 9 10 and 11 only if a case is provided where outcome is yet to come). This is part {i+1} of {len(chunks)}. Focus on:
|
1498 |
1. A summary of the facts
|
1499 |
2. Identification of key legal issues
|
1500 |
3. Relevant laws and precedents
|
|
|
1502 |
5. Conclusion and recommendations
|
1503 |
6. An analysis of why the winning party won
|
1504 |
7. A review of how the losing party could have potentially won
|
1505 |
+
8. How the user can win this case based on the provided information.
|
1506 |
+
9. Key areas where user should be carefull and could potentially loose this case.
|
1507 |
+
10. Relevant Arguments for this case to be provided in the court.
|
1508 |
+
11. predict wheter user can win this case or not.
|
|
|
|
|
|
|
1509 |
|
1510 |
Case Information (Part {i+1}/{len(chunks)}):
|
1511 |
{chunk}
|
|
|
1527 |
|
1528 |
def automated_legal_brief_generation_ui():
|
1529 |
st.title("Automated Legal Brief Generation")
|
1530 |
+
st.expander(How to use"):
|
1531 |
+
st.write('''Enter the case details and based on that it will generate a legal brief and also provide you with the proper analysis of the case and how you can win this case and where you have to be carefull''')
|
1532 |
if 'legal_brief' not in st.session_state:
|
1533 |
st.session_state.legal_brief = ""
|
1534 |
|