Update app2.py
Browse files1493 unmodified lines14941495149614971498149915001 unmodified line150215031504150515061507150815091510151115121513151415 unmodified lines15301531153215331534153515361493 unmodified linesfull_brief = ""for i, chunk in enumerate(chunks):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:1. A summary of the facts2. Identification of key legal issues3. Relevant laws and precedents1 unmodified line5. Conclusion and recommendations6. An analysis of why the winning party won7. A review of how the losing party could have potentially wonAnd 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:1. A summary of the facts and the case details.2. How the user can win this case based on the provided information.3. Key areas where user should be carefull and could potentially loose this case.4. Relevant Arguments for this case to be provided in the court.5. predict wheter user can win this case or not.Case Information (Part {i+1}/{len(chunks)}):{chunk}15 unmodified linesdef automated_legal_brief_generation_ui():st.title("Automated Legal Brief Generation")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")if 'legal_brief' not in st.session_state:st.session_state.legal_brief = ""1493 unmodified lines14941495149614971498149915001 unmodified line150215031504150515061507150815091510151115 unmodified lines152715281529153015311532153315341493 unmodified linesfull_brief = ""for i, chunk in enumerate(chunks):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:1. A summary of the facts2. Identification of key legal issues3. Relevant laws and precedents1 unmodified line5. Conclusion and recommendations6. An analysis of why the winning party won7. A review of how the losing party could have potentially won8. How the user can win this case based on the provided information.9. Key areas where user should be carefull and could potentially loose this case.10. Relevant Arguments for this case to be provided in the court.11. predict wheter user can win this case or not.Case Information (Part {i+1}/{len(chunks)}):{chunk}15 unmodified linesdef automated_legal_brief_generation_ui():st.title("Automated Legal Brief Generation")st.expander(How to use"):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''')if 'legal_brief' not in st.session_state:st.session_state.legal_brief = ""
app2.py+7-9