Johan713 commited on
Commit
cae372c
·
verified ·
1 Parent(s): 16e8aa5

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +7 -9
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
- And if the user has just provided the case information or details of an case which has not been presented in the court or its outcome(result) is yet to come then generate:
1507
- 1. A summary of the facts and the case details.
1508
- 2. How the user can win this case based on the provided information.
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.subheader("enter the caase details to generate a legal brief or to generate legal brief or predict the case outcome and how the case should proceed")
 
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