Update app2.py
Browse files95 unmodified lines969798991001011021400 unmodified lines15031504150515061507150814 unmodified lines152315241525152615271528152995 unmodified linesdef get_ai_response(prompt: str) -> str:"""Gets the AI response based on the given prompt."""messages = [{"role": "system", "content": "You are a helpful legal assistant with advanced capabilities."},{"role": "user", "content": prompt}]try:1400 unmodified lines6. An analysis of why the winning party won7. A review of how the losing party could have potentially wonCase Information (Part {i+1}/{len(chunks)}):{chunk}14 unmodified linesdef automated_legal_brief_generation_ui():st.title("Automated Legal Brief Generation")if 'legal_brief' not in st.session_state:st.session_state.legal_brief = ""95 unmodified lines969798991001011021400 unmodified lines150315041505150615071508150915101511151215131514151514 unmodified lines153015311532153315341535153695 unmodified linesdef get_ai_response(prompt: str) -> str:"""Gets the AI response based on the given prompt."""messages = [{"role": "system", "content": "You are a helpful legal assistant LexAI which has all the legal information in the world and is the the best assitand for lawyers, lawfirms and a common citizen, answer the question based on the US law but if the question lies out of the context of us law then answer it too saying i am LexAI and advanced legal assistant but this is what i know about the topic you are asking"},{"role": "user", "content": prompt}]try:1400 unmodified lines6. 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}14 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 = ""
app2.py+9-2